summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/clip.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-03-29 17:27:59 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-03-29 17:27:59 +0000
commit103bc0f75c00dfcf671dc50d8d9666f88a42a59d (patch)
treea77d919e21188e7c1c36718fb317f5c43d39383e /src/mesa/main/clip.c
parent23d319fc7dda3ae3639c05cd2c7a8bcdac9eac36 (diff)
downloadexternal_mesa3d-103bc0f75c00dfcf671dc50d8d9666f88a42a59d.zip
external_mesa3d-103bc0f75c00dfcf671dc50d8d9666f88a42a59d.tar.gz
external_mesa3d-103bc0f75c00dfcf671dc50d8d9666f88a42a59d.tar.bz2
Replaced ClipEnabled[] array and _AnyClip with ClipPlanesEnabled bitmask.
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 700d271..168ae35 100644
--- a/src/mesa/main/clip.c
+++ b/src/mesa/main/clip.c
@@ -1,4 +1,4 @@
-/* $Id: clip.c,v 1.24 2001/12/18 04:06:44 brianp Exp $ */
+/* $Id: clip.c,v 1.25 2002/03/29 17:29:12 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -90,9 +90,9 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq )
* matrix, and is recalculated on changes to the projection matrix by
* code in _mesa_update_state().
*/
- if (ctx->Transform.ClipEnabled[p]) {
+ if (ctx->Transform.ClipPlanesEnabled & (1 << p)) {
if (ctx->ProjectionMatrixStack.Top->flags & MAT_DIRTY)
- _math_matrix_analyse( ctx->ProjectionMatrixStack.Top );
+ _math_matrix_analyse( ctx->ProjectionMatrixStack.Top );
_mesa_transform_vector( ctx->Transform._ClipUserPlane[p],
ctx->Transform.EyeUserPlane[p],