Page 1 of 1

OpenGL viewport getting cleared when a window overlaps it

Posted: Sat Feb 12, 2005 1:55 am
by halo
When another window is dragged over an OpenGL viewport, It erases the underlying pixels:
Image

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.

Posted: Sat Feb 12, 2005 3:16 am
by halo
i figured it out

Posted: Sat Feb 12, 2005 9:50 am
by Polo
Hi halo !
It's interesting for me, how have you managed to get rid of this problem ?