disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 May 2008 14:33:44 +0000 (08:33 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 8 May 2008 14:33:44 +0000 (08:33 -0600)
progs/tests/fbotest2.c

index 18f28972b6eab70c6216d219945c69f49ff427fc..5283c7e1fd6673b9c6b18b4d9ed0f9c5866dcb8f 100644 (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);