How can I avoid the "clearing" of the front buffer caused when another window is dragged over the glviewport, or when the viewport is dragged outside the bounds of the desktop, then back in again?
This is for an event-based application, so I only render when something changes or if the viewport needs to be refreshed. I don't want to render continuously while the user is dragging the window or whatever, I just want Windows to NOT screw up my viewport, or else just redraw whatever was there.
I have seen OpenGL applications that do this without re-rendering the window, so it must be possible.



