From a0c85249244e1af8dac88076d5f384cf4bd01236 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Fri, 11 Feb 2005 09:34:05 +0000 Subject: mesa-main-0-NULL.patch from Jeff Muizelaar --- src/mesa/main/light.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/light.c') diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c index 0cf2635765f..4c39d2ff4c9 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; -- cgit v1.2.3