summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-03-28 22:45:45 +0000
committerBrian Paul <[email protected]>2002-03-28 22:45:45 +0000
commitf66de793654e20704a8180538207a4736ada7996 (patch)
tree36974d38765873e11b685afec19eed9876856be9 /src/mesa/main/enable.c
parent934bee04f2e89ecca9861672e48fa0f958c78867 (diff)
decrement Transform._AnyClip when clip planes are disabled
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 366c2cef847..385ceffb98f 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -1,4 +1,4 @@
-/* $Id: enable.c,v 1.57 2002/02/13 00:53:19 keithw Exp $ */
+/* $Id: enable.c,v 1.58 2002/03/28 22:45:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -230,6 +230,9 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state )
ctx->Transform.EyeUserPlane[p],
ctx->ProjectionMatrixStack.Top->inv );
}
+ else {
+ ctx->Transform._AnyClip--;
+ }
}
break;
case GL_COLOR_MATERIAL: