aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-09-13 02:59:53 +0000
committerBrian Paul <[email protected]>2005-09-13 02:59:53 +0000
commit42c34efd23d7ad05df9f3c71f7d52dd259e179d8 (patch)
tree79161c2cbe3801650843cc20ede7bdc3bdccd673 /src/mesa/main/state.c
parentbdf8441f808b7bd0a8fa10c59025c015db482a58 (diff)
OpenGL 2.0's two-sided stencil feature wasn't implemented correctly.
See comment near top of stencil.c for info about OpenGL 2.0 vs. GL_EXT_stencil_two_side.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 6fc770eb3bb..509ee42a023 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -993,6 +993,9 @@ _mesa_update_state( GLcontext *ctx )
if (new_state & _NEW_LIGHT)
_mesa_update_lighting( ctx );
+ if (new_state & _NEW_STENCIL)
+ _mesa_update_stencil( ctx );
+
if (new_state & _IMAGE_NEW_TRANSFER_STATE)
_mesa_update_pixel( ctx, new_state );