Mesa (master): mesa: restore GL_EXT_depth_bounds_test state in glPopAttrib ()

Brian Paul brianp at kemper.freedesktop.org
Wed Jun 3 17:38:47 UTC 2015


Module: Mesa
Branch: master
Commit: 4dd72fe70d6800525302c734d161be411ed9f7e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dd72fe70d6800525302c734d161be411ed9f7e0

Author: Brian Paul <brianp at vmware.com>
Date:   Fri May 15 12:09:54 2015 -0600

mesa: restore GL_EXT_depth_bounds_test state in glPopAttrib()

Spotted by inspection.  Untested (no piglit test).

Signed-off-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/attrib.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 365a79d..53626e3 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -1091,6 +1091,11 @@ _mesa_PopAttrib(void)
                _mesa_ClearDepth(depth->Clear);
                _mesa_set_enable(ctx, GL_DEPTH_TEST, depth->Test);
                _mesa_DepthMask(depth->Mask);
+               if (ctx->Extensions.EXT_depth_bounds_test) {
+                  _mesa_set_enable(ctx, GL_DEPTH_BOUNDS_TEST_EXT,
+                                   depth->BoundsTest);
+                  _mesa_DepthBoundsEXT(depth->BoundsMin, depth->BoundsMax);
+               }
             }
             break;
          case GL_ENABLE_BIT:




More information about the mesa-commit mailing list