aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enable.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-06-30 14:22:23 +0000
committerBrian Paul <[email protected]>2005-06-30 14:22:23 +0000
commit049e320f46f3a3daaa36ef67cc680dc504c124d5 (patch)
tree695bdf68ffa2ba7a7341c0d58e0ddbd736e78a13 /src/mesa/main/enable.c
parentf138b977d09327445a8e9c8126c493c4487c1630 (diff)
Add a set of predicate functions for testing matrices instead of directly
testing the flags field. Move definition of all the MAT_FLAGs into the m_matrix.c file since they're now private.
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r--src/mesa/main/enable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c
index 671db68ce84..67fd083ca82 100644
--- a/src/mesa/main/enable.c
+++ b/src/mesa/main/enable.c
@@ -257,7 +257,7 @@ void _mesa_set_enable( GLcontext *ctx, GLenum cap, GLboolean state )
if (state) {
ctx->Transform.ClipPlanesEnabled |= (1 << p);
- if (ctx->ProjectionMatrixStack.Top->flags & MAT_DIRTY)
+ if (_math_matrix_is_dirty(ctx->ProjectionMatrixStack.Top))
_math_matrix_analyse( ctx->ProjectionMatrixStack.Top );
/* This derived state also calculated in clip.c and