summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/attrib.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-05-15 12:09:54 -0600
committerBrian Paul <[email protected]>2015-06-03 11:35:46 -0600
commit4dd72fe70d6800525302c734d161be411ed9f7e0 (patch)
tree91f77015039fa92fb9a3c3349065d2686638f552 /src/mesa/main/attrib.c
parent6139195606d97b43a739500627c906baf804fab0 (diff)
mesa: restore GL_EXT_depth_bounds_test state in glPopAttrib()
Spotted by inspection. Untested (no piglit test). Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r--src/mesa/main/attrib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 365a79ded87..53626e38be9 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: