projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adfa778
)
mesa: remove glEnable(GL_DEPTH_BOUNDS_TEST_EXT) check/warning
author
Brian Paul
<brianp@vmware.com>
Thu, 24 Sep 2009 20:24:14 +0000
(14:24 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 24 Sep 2009 20:24:14 +0000
(14:24 -0600)
At the time of the enable there may not be a Z buffer, but one
may be attached to the FBO later.
src/mesa/main/enable.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/enable.c
b/src/mesa/main/enable.c
index 47d19ab932baaab980a837b23e77e63d4e09a505..d1b21756fe1d5e9fb22f44f4bc5f12b213f78588 100644
(file)
--- a/
src/mesa/main/enable.c
+++ b/
src/mesa/main/enable.c
@@
-933,11
+933,6
@@
_mesa_set_enable(GLcontext *ctx, GLenum cap, GLboolean state)
/* GL_EXT_depth_bounds_test */
case GL_DEPTH_BOUNDS_TEST_EXT:
CHECK_EXTENSION(EXT_depth_bounds_test, cap);
- if (state && ctx->DrawBuffer->Visual.depthBits == 0) {
- _mesa_warning(ctx,
- "glEnable(GL_DEPTH_BOUNDS_TEST_EXT) but no depth buffer");
- return;
- }
if (ctx->Depth.BoundsTest == state)
return;
FLUSH_VERTICES(ctx, _NEW_DEPTH);