EDIT: I don’t get this problem when windows Aero is enabled, although I prefer to have it off. I suppose I can chalk the bug up to “crappy legacy support in Windows”, but I’d still like to hear what anyone has to say about it.
I’ve been searching for information on this bug (and still am), but haven’t had any luck just yet, so I figured I would check with you guys quickly…if it’s a known issue, please be nice.
Here’s my set-up:
OS: Windows Vista
GFX: Intel GMA65 - X3100 - Latest (still shitty) drivers
My program works fine 100% of the time, until I start moving other windows that use OpenGL around it. For example, I use WinAmp to play music, and if the WinAmp (drawn with openGL) window goes over top of the program I’m working on, when I minimize the winamp window, a “stencil” is created for my window, and nothing will draw outside of the area that the winamp window used to be.
I’m using a Thinkpad, which has pop-up menus that are specific to the computer, and these cause the same problem. When I change the volume on the computer, a strange little stencil is created in my program, and it will only draw inside of a small area that says “Volume - (Volume Level)”.
The only solutions I’ve found are:
-Resizing or moving the window to make the problem go away.
-Changing the SwapBuffer(H_DC) command into:
SwapBuffer(H_DC);
SwapBuffer(H_DC);
SwapBuffer(H_DC);
Thus putting the SAME buffer to the screen twice. This makes the stencil to away as well(no idea why), but I can’t stand using such awful code.
I tried using gl_Disable(GL_STENCIL), but this didn’t do anything…
Any ideas?
Thanks in advance.