Why does my double buffered window appear incomplete or contain black stripes?
This is a problem with MS OpenGL. The bug is in the generic code, or possibly in MS Windows itself, because it occurs even with pure software rendering. Microsoft’s product support page contains information on this issue: Clipping Problems with Generic Implementation of OpenGL for Windows 2000 To work around the bug, try one of these two methods: • Create the OpenGL drawing window, but don’t make it visible immediately. Get the screen size and set the window’s size to be the same as the screen. Now set the pixel format and create the HGLRC. Set the window’s size back to whatever it should be and make the window visible. This hack is invisible to the user, but doesn’t always work. • When the window is resized larger, destroy and re-create the window. This is really ugly and visible to the user, but it seems to always work.
This is a problem with MS OpenGL. The bug is in the generic code, or possibly in MS Windows itself, because it occurs even with pure software rendering. Microsoft’s product support page contains information on this issue: Clipping Problems with Generic Implementation of OpenGL for Windows 2000 To work around the bug, try one of these two methods: • Create the OpenGL drawing window, but don’t make it visible immediately. Get the screen size and set the window’s size to be the same as the screen. Now set the pixel format and create the HGLRC. Set the window’s size back to whatever it should be and make the window visible. This hack is invisible to the user, but doesn’t always work. • When the window is resized larger, destroy and re-create the window. This is really ugly and visible to the user, but it seems to always work.