summaryrefslogtreecommitdiffstats
path: root/progs/tests/fbotest2.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-08 08:39:30 -0600
committerBrian Paul <[email protected]>2008-05-08 08:39:30 -0600
commit45668806567c0f31479c8bf9b1a85930cac70c5d (patch)
treef5ef43396dda8901df66a82690e98d933ced15a5 /progs/tests/fbotest2.c
parent6a3fac871104c5cf3cd1c6a7767ba66d10446475 (diff)
disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer
Diffstat (limited to 'progs/tests/fbotest2.c')
-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);