diff options
author | Alan Hourihane <[email protected]> | 2004-12-02 13:29:40 +0000 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2004-12-02 13:29:40 +0000 |
commit | 22ae633d1ea636e0e07ba044a0f8fa2195c83bc6 (patch) | |
tree | 3b3bb53b6b73cffb24b6be0de28b4bd57d08c671 /src/mesa/tnl/t_vb_lighttmp.h | |
parent | ba807fbe2914cf1135297428f7a3163707203073 (diff) |
Fix some warnings
Diffstat (limited to 'src/mesa/tnl/t_vb_lighttmp.h')
-rw-r--r-- | src/mesa/tnl/t_vb_lighttmp.h | 8 |
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]; |