summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-24 14:24:14 -0600
committerBrian Paul <[email protected]>2009-09-24 14:24:14 -0600
commit60b152a1b366b1c9b9326dda1d91ab600fbb0d86 (patch)
tree1b62b1f9eabf51032b6e933457fc875bda73e2b8 /src/mesa/main/enable.c
parentadfa778c8ea436d6e62c37327b44f6ff359ed63f (diff)
mesa: remove glEnable(GL_DEPTH_BOUNDS_TEST_EXT) check/warning
At the time of the enable there may not be a Z buffer, but one may be attached to the FBO later.
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 47d19ab932b..d1b21756fe1 100644
--- 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);