diff options
author | Brian Paul <[email protected]> | 2011-03-19 14:17:41 -0600 |
---|---|---|
committer | Brian <brian@ubuntu10-32.(none)> | 2011-03-19 14:17:41 -0600 |
commit | ec4a21b0e21e8c706f26db5308fb267b6979b631 (patch) | |
tree | 7a05745f3d393b902ba57979eb8463945c10d225 /src/mesa/main/enable.c | |
parent | 957552fce0c272b476d89bee374724e8a94a8d8a (diff) |
mesa: consolidate clip plane update code
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index f247092410b..60255d78eaf 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -29,6 +29,7 @@ #include "glheader.h" +#include "clip.h" #include "context.h" #include "enable.h" #include "light.h" @@ -310,17 +311,7 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) if (state) { ctx->Transform.ClipPlanesEnabled |= (1 << p); - - if (_math_matrix_is_dirty(ctx->ProjectionMatrixStack.Top)) - _math_matrix_analyse( ctx->ProjectionMatrixStack.Top ); - - /* This derived state also calculated in clip.c and - * from _mesa_update_state() on changes to EyeUserPlane - * and ctx->ProjectionMatrix respectively. - */ - _mesa_transform_vector( ctx->Transform._ClipUserPlane[p], - ctx->Transform.EyeUserPlane[p], - ctx->ProjectionMatrixStack.Top->inv ); + _mesa_update_clip_plane(ctx, p); } else { ctx->Transform.ClipPlanesEnabled &= ~(1 << p); |