summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/clip.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2000-10-30 13:31:59 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2000-10-30 13:31:59 +0000
commita96308c37db0bc0086a017d318bc3504aa5f0b1a (patch)
tree0010de3aa19901acf13b57e57e7ba465abffa95e /src/mesa/main/clip.c
parenta4575499679d9d91055a35c7673b81872ec127cb (diff)
downloadexternal_mesa3d-a96308c37db0bc0086a017d318bc3504aa5f0b1a.zip
external_mesa3d-a96308c37db0bc0086a017d318bc3504aa5f0b1a.tar.gz
external_mesa3d-a96308c37db0bc0086a017d318bc3504aa5f0b1a.tar.bz2
Replace the flags Mesa was using for ctx->NewState with a new set
based on the GL attribute groups. Introduced constants describing the circumstances under which some key derived values can change: _SWRAST_NEW_RASTERMASK -- ctx->RasterMask _SWRAST_NEW_TRIANGLE -- The software rasterizer's triangle function _DD_NEW_FEEDBACK -- the 'DD_FEEDBACK' bit in ctx->TriangleCaps These are helpful in deciding whether you need to recalculate state if your recalculation involves reference to a derived value.
Diffstat (limited to 'src/mesa/main/clip.c')
-rw-r--r--src/mesa/main/clip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c
index 92788c6..28d4e33 100644
--- a/src/mesa/main/clip.c
+++ b/src/mesa/main/clip.c
@@ -1,4 +1,4 @@
-/* $Id: clip.c,v 1.11 2000/10/28 20:41:13 brianp Exp $ */
+/* $Id: clip.c,v 1.12 2000/10/30 13:31:59 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -203,8 +203,6 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq )
if (ctx->Transform.ClipEnabled[p]) {
- ctx->NewState |= NEW_USER_CLIP;
-
if (ctx->ProjectionMatrix.flags & MAT_DIRTY_ALL_OVER) {
gl_matrix_analyze( &ctx->ProjectionMatrix );
}
@@ -212,6 +210,8 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq )
ctx->Transform.EyeUserPlane[p],
ctx->ProjectionMatrix.inv );
}
+
+ ctx->NewState |= _NEW_TRANSFORM;
}