projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ffbfac
)
disable GL_DEPTH_TEST before glDrawPixels in case window has unrequested depth buffer
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 8 May 2008 14:33:44 +0000
(08:33 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 8 May 2008 14:33:44 +0000
(08:33 -0600)
progs/tests/fbotest2.c
patch
|
blob
|
history
diff --git
a/progs/tests/fbotest2.c
b/progs/tests/fbotest2.c
index 18f28972b6eab70c6216d219945c69f49ff427fc..5283c7e1fd6673b9c6b18b4d9ed0f9c5866dcb8f 100644
(file)
--- 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);