OpenGL viewport getting cleared when a window overlaps it
Posted: Sat Feb 12, 2005 1:55 am
When another window is dragged over an OpenGL viewport, It erases the underlying pixels:

I tried adding the CS_SAVEBITS style to the window, which had no effect.
Here is a demo which demonstrates the problem. I need to either set the window so it "saves" the underlying pixels, or I need to detect the repaint event and flip the buffer. Please help:
http://www.leadwerks.com/post/glprob.zip
The title bar displays the hwnd to the window, so you should be able to tweak the window as the program runs.
The above program uses BlitzPlus, but I use PureBasic to do a lot of tweaking to my programs, and thought I could solve this one with PB.

I tried adding the CS_SAVEBITS style to the window, which had no effect.
Here is a demo which demonstrates the problem. I need to either set the window so it "saves" the underlying pixels, or I need to detect the repaint event and flip the buffer. Please help:
http://www.leadwerks.com/post/glprob.zip
The title bar displays the hwnd to the window, so you should be able to tweak the window as the program runs.
The above program uses BlitzPlus, but I use PureBasic to do a lot of tweaking to my programs, and thought I could solve this one with PB.