From 22ae633d1ea636e0e07ba044a0f8fa2195c83bc6 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Thu, 2 Dec 2004 13:29:40 +0000 Subject: Fix some warnings --- src/mesa/tnl/t_vb_lighttmp.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/mesa/tnl/t_vb_lighttmp.h') diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h index 2eaf61ff4d..32265851cd 100644 --- a/src/mesa/tnl/t_vb_lighttmp.h +++ b/src/mesa/tnl/t_vb_lighttmp.h @@ -36,7 +36,7 @@ /* define TRACE to trace lighting code */ -/* #define TRACE 1 */ +#define TRACE 1 /* * ctx is the current context @@ -253,8 +253,9 @@ static void TAG(light_rgba)( GLcontext *ctx, const GLfloat *normal = (GLfloat *)VB->NormalPtr->data; GLfloat (*Fcolor)[4] = (GLfloat (*)[4]) store->LitColor[0].data; +#if IDX & LIGHT_TWOSIDE GLfloat (*Bcolor)[4] = (GLfloat (*)[4]) store->LitColor[1].data; - GLfloat (*color[2])[4]; +#endif const GLuint nr = VB->Count; @@ -265,9 +266,6 @@ static void TAG(light_rgba)( GLcontext *ctx, (void) nstride; (void) vstride; - color[0] = Fcolor; - color[1] = Bcolor; - VB->ColorPtr[0] = &store->LitColor[0]; sumA[0] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3]; -- cgit v1.2.3