summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_lighttmp.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/tnl/t_vb_lighttmp.h b/src/mesa/tnl/t_vb_lighttmp.h
index 2eaf61ff4d0..32265851cd2 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];