diff options
Diffstat (limited to 'src/mesa/drivers/glide/fxtris.c')
-rw-r--r-- | src/mesa/drivers/glide/fxtris.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/glide/fxtris.c b/src/mesa/drivers/glide/fxtris.c index b2864dbb8e1..d15ebf8bc10 100644 --- a/src/mesa/drivers/glide/fxtris.c +++ b/src/mesa/drivers/glide/fxtris.c @@ -480,8 +480,10 @@ fx_null_tri( GLcontext *ctx, grDrawTriangle( &v[i2].v, &v[i1].v, &v[i].v ) #define TAG(x) fx_##x##_verts -#define LOCAL_VARS \ - fxVertex *v = FX_CONTEXT(ctx)->verts; +#define LOCAL_VARS \ + fxVertex *v = FX_CONTEXT(ctx)->verts; \ + const GLuint * const elt = TNL_CONTEXT(ctx)->vb.Elts; \ + (void) elt; /* Verts, no clipping. */ @@ -496,12 +498,8 @@ fx_null_tri( GLcontext *ctx, */ #undef ELT #undef TAG -#undef LOCAL_VARS #define TAG(x) fx_##x##_elts #define ELT(x) elt[x] -#define LOCAL_VARS \ - fxVertex *v = FX_CONTEXT(ctx)->verts; \ - const GLuint * const elt = TNL_CONTEXT(ctx)->vb.Elts; #include "tnl/t_vb_rendertmp.h" |