From ad2ac216fa0cbebc36530bf9e5256e902710b892 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 24 Nov 2000 10:25:05 +0000 Subject: Support for swappable t&l modules, including an example one in the FX driver (enable with FX_ALLOW_VTXFMT=t). --- src/mesa/main/clip.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/clip.c') diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c index 2df12db2e5..0dc365131d 100644 --- a/src/mesa/main/clip.c +++ b/src/mesa/main/clip.c @@ -1,4 +1,4 @@ -/* $Id: clip.c,v 1.16 2000/11/22 07:32:16 joukj Exp $ */ +/* $Id: clip.c,v 1.17 2000/11/24 10:25:05 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -78,7 +78,7 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) * whenever the projection matrix changes. */ if (ctx->ModelView.flags & MAT_DIRTY) - _math_matrix_analyze( &ctx->ModelView ); + _math_matrix_analyse( &ctx->ModelView ); gl_transform_vector( ctx->Transform.EyeUserPlane[p], equation, ctx->ModelView.inv ); @@ -90,7 +90,7 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) */ if (ctx->Transform.ClipEnabled[p]) { if (ctx->ProjectionMatrix.flags & MAT_DIRTY) - _math_matrix_analyze( &ctx->ProjectionMatrix ); + _math_matrix_analyse( &ctx->ProjectionMatrix ); gl_transform_vector( ctx->Transform._ClipUserPlane[p], ctx->Transform.EyeUserPlane[p], @@ -98,6 +98,9 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq ) } ctx->NewState |= _NEW_TRANSFORM; + + if (ctx->Driver.ClipPlane) + ctx->Driver.ClipPlane( ctx, plane, equation ); } -- cgit v1.2.3