Mesa (mesa_7_6_branch): mesa: remove glEnable(GL_DEPTH_BOUNDS_TEST_EXT) check/warning

Brian Paul brianp at kemper.freedesktop.org
Thu Sep 24 22:03:41 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 60b152a1b366b1c9b9326dda1d91ab600fbb0d86
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=60b152a1b366b1c9b9326dda1d91ab600fbb0d86

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Sep 24 14:24:14 2009 -0600

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.

---

 src/mesa/main/enable.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 47d19ab..d1b2175 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);




More information about the mesa-commit mailing list