diff options
author | Keith Whitwell <[email protected]> | 2001-12-03 17:48:58 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-12-03 17:48:58 +0000 |
commit | aa46094ca671a9a110338c4649a9f28bad83f5b9 (patch) | |
tree | 9c8fe91888e1fa0a6fb9dbd15058b30669662553 /src/mesa | |
parent | 4ea18fc2dc25abc62427e8fb84d6f0655f46a587 (diff) |
guard ResetStipple calls
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/tnl/t_vb_render.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_vb_render.c b/src/mesa/tnl/t_vb_render.c index 372a4c3ba0c..de57eaf2021 100644 --- a/src/mesa/tnl/t_vb_render.c +++ b/src/mesa/tnl/t_vb_render.c @@ -1,4 +1,4 @@ -/* $Id: t_vb_render.c,v 1.23 2001/11/19 10:22:41 keithw Exp $ */ +/* $Id: t_vb_render.c,v 1.24 2001/12/03 17:48:58 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -225,10 +225,11 @@ static void clip_elt_triangles( GLcontext *ctx, const line_func LineFunc = tnl->Driver.Render.Line; \ const triangle_func TriangleFunc = tnl->Driver.Render.Triangle; \ const quad_func QuadFunc = tnl->Driver.Render.Quad; \ + const GLboolean stipple = ctx->Line.StippleFlag; \ (void) (LineFunc && TriangleFunc && QuadFunc); \ - (void) elt; + (void) elt; (void) stipple -#define RESET_STIPPLE tnl->Driver.Render.ResetLineStipple( ctx ) +#define RESET_STIPPLE if (stipple) tnl->Driver.Render.ResetLineStipple( ctx ) #define RESET_OCCLUSION ctx->OcclusionResult = GL_TRUE #define INIT(x) tnl->Driver.Render.PrimitiveNotify( ctx, x ) #define RENDER_TAB_QUALIFIER |