projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6139195
)
mesa: restore GL_EXT_depth_bounds_test state in glPopAttrib()
author
Brian Paul
<brianp@vmware.com>
Fri, 15 May 2015 18:09:54 +0000
(12:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 3 Jun 2015 17:35:46 +0000
(11:35 -0600)
Spotted by inspection. Untested (no piglit test).
Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/main/attrib.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/attrib.c
b/src/mesa/main/attrib.c
index 365a79ded87ba82f048cad083307b01acb6edde0..53626e38be91aa32b60698c043459de157b767a5 100644
(file)
--- 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: