diff options
author | Keith Whitwell <[email protected]> | 2000-10-30 13:31:59 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2000-10-30 13:31:59 +0000 |
commit | a96308c37db0bc0086a017d318bc3504aa5f0b1a (patch) | |
tree | 0010de3aa19901acf13b57e57e7ba465abffa95e /src/mesa/main/clip.c | |
parent | a4575499679d9d91055a35c7673b81872ec127cb (diff) |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c index 92788c638fc..28d4e33daa1 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; } |