summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-08 08:33:44 -0600
committerBrian Paul <[email protected]>2008-05-08 08:33:44 -0600
commit79e57695e14eee08c799670e105f2371471747f8 (patch)
tree20791f65017f00bf2c08f04de443081a43d186c0
parent7ffbfaccfb1484a4ffd5aea0e0e1fbb407977a56 (diff)
disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer
-rw-r--r--progs/tests/fbotest2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/progs/tests/fbotest2.c b/progs/tests/fbotest2.c
index 18f28972b6e..5283c7e1fd6 100644
--- a/progs/tests/fbotest2.c
+++ b/progs/tests/fbotest2.c
@@ -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);