diff options
author | Brian Paul <[email protected]> | 2002-03-29 17:27:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-03-29 17:27:59 +0000 |
commit | 103bc0f75c00dfcf671dc50d8d9666f88a42a59d (patch) | |
tree | a77d919e21188e7c1c36718fb317f5c43d39383e /src/mesa/main/state.c | |
parent | 23d319fc7dda3ae3639c05cd2c7a8bcdac9eac36 (diff) |
Replaced ClipEnabled[] array and _AnyClip with ClipPlanesEnabled bitmask.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 8ea069560d3..ee8389a7513 100644 --- a/src/mesa/main/state.c +++ b/src/mesa/main/state.c @@ -1,4 +1,4 @@ -/* $Id: state.c,v 1.78 2002/03/16 18:07:39 brianp Exp $ */ +/* $Id: state.c,v 1.79 2002/03/29 17:27:59 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -650,10 +650,10 @@ update_projection( GLcontext *ctx ) /* Recompute clip plane positions in clipspace. This is also done * in _mesa_ClipPlane(). */ - if (ctx->Transform._AnyClip) { + if (ctx->Transform.ClipPlanesEnabled) { GLuint p; for (p = 0; p < ctx->Const.MaxClipPlanes; p++) { - if (ctx->Transform.ClipEnabled[p]) { + if (ctx->Transform.ClipPlanesEnabled & (1 << p)) { _mesa_transform_vector( ctx->Transform._ClipUserPlane[p], ctx->Transform.EyeUserPlane[p], ctx->ProjectionMatrixStack.Top->inv ); |