summaryrefslogtreecommitdiff
path: root/src/mesa/main/light.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2005-02-11 09:34:05 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2005-02-11 09:34:05 +0000
commita0c85249244e1af8dac88076d5f384cf4bd01236 (patch)
tree29df8170864a29fc368e25afa4fb63e72df1aa31 /src/mesa/main/light.c
parent2d10924a14c439376816c5398cecd46e940482fd (diff)
mesa-main-0-NULL.patch from Jeff Muizelaar
Diffstat (limited to 'src/mesa/main/light.c')
-rw-r--r--src/mesa/main/light.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 0cf2635765..4c39d2ff4c 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -876,7 +876,7 @@ _mesa_invalidate_shine_table( GLcontext *ctx, GLuint side )
ASSERT(side < 2);
if (ctx->_ShineTable[side])
ctx->_ShineTable[side]->refcount--;
- ctx->_ShineTable[side] = 0;
+ ctx->_ShineTable[side] = NULL;
}
@@ -1281,7 +1281,8 @@ _mesa_init_lighting( GLcontext *ctx )
ctx->Light.ColorMaterialMode = GL_AMBIENT_AND_DIFFUSE;
ctx->Light.ColorMaterialBitmask = _mesa_material_bitmask( ctx,
GL_FRONT_AND_BACK,
- GL_AMBIENT_AND_DIFFUSE, ~0, 0 );
+ GL_AMBIENT_AND_DIFFUSE, ~0,
+ NULL );
ctx->Light.ColorMaterialEnabled = GL_FALSE;