mesa: restore GL_EXT_depth_bounds_test state in glPopAttrib()

Spotted by inspection.  Untested (no piglit test).

Signed-off-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Brian Paul
2015-05-15 12:09:54 -06:00
parent 6139195606
commit 4dd72fe70d

View File

@@ -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: