OpenGL viewport getting cleared when a window overlaps it

Everything else that doesn't fall into one of the other PB categories.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

OpenGL viewport getting cleared when a window overlaps it

Post 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.
halo
Enthusiast
Enthusiast
Posts: 104
Joined: Mon Jan 26, 2004 2:49 am

Post by halo »

i figured it out
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Hi halo !
It's interesting for me, how have you managed to get rid of this problem ?
Post Reply