projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e442fe5
)
mesa: remove GL_DEPTH_TEST + no depth buffer test
author
Brian Paul
<brianp@vmware.com>
Fri, 16 Jan 2009 20:25:41 +0000
(13:25 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Jan 2009 20:25:41 +0000
(13:25 -0700)
One could enable depth testing before binding an FBO that has a depth buffer
so this test is no longer useful or correct.
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index 160a6fc08612e26793e5f8c90251cb93a73ccf78..dae576ae5ac36da2d71d4a6a6c8837909904325a 100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-341,10
+341,6
@@
_mesa_set_enable(GLcontext *ctx, GLenum cap, GLboolean state)
ctx->Transform.CullVertexFlag = state;
break;
case GL_DEPTH_TEST:
- if (state && ctx->DrawBuffer->Visual.depthBits == 0) {
- _mesa_warning(ctx,"glEnable(GL_DEPTH_TEST) but no depth buffer");
- return;
- }
if (ctx->Depth.Test == state)
return;
FLUSH_VERTICES(ctx, _NEW_DEPTH);