From 45668806567c0f31479c8bf9b1a85930cac70c5d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 8 May 2008 08:39:30 -0600 Subject: disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer --- progs/tests/fbotest2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'progs/tests/fbotest2.c') 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); -- cgit v1.2.3