disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer

This commit is contained in:
Brian Paul
2008-05-08 08:33:44 -06:00
parent 7ffbfaccfb
commit 79e57695e1
+1
View File
@@ -68,6 +68,7 @@ Display( void )
/* draw to window */
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
glDisable(GL_DEPTH_TEST); /* in case window has depth buffer */
glWindowPos2iARB(0, 0);
glDrawPixels(Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, buffer);