summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-02-13 23:55:30 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-02-13 23:55:30 +0000
commit45323646bdf1e5fa4410a89c2e82908a571b546a (patch)
treeacdffd0352826065e3f78adb43fd48ec2a71ce83
parent10686f42c90673daaac61971be553a78fcdb2ab1 (diff)
fixed bug in gl_validate_all_lighting_tables() found with CI mode conformance tests
-rw-r--r--src/mesa/main/light.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index fd58399962..50bd041f19 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1,4 +1,4 @@
-/* $Id: light.c,v 1.35 2001/01/23 23:39:36 brianp Exp $ */
+/* $Id: light.c,v 1.36 2001/02/13 23:55:30 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1100,10 +1100,12 @@ gl_validate_all_lighting_tables( GLcontext *ctx )
GLfloat shininess;
shininess = ctx->Light.Material[0].Shininess;
- if (!ctx->_ShineTable[0]) validate_shine_table( ctx, 0, shininess );
+ if (!ctx->_ShineTable[0] || ctx->_ShineTable[0]->shininess != shininess)
+ validate_shine_table( ctx, 0, shininess );
shininess = ctx->Light.Material[1].Shininess;
- if (!ctx->_ShineTable[1]) validate_shine_table( ctx, 1, shininess );
+ if (!ctx->_ShineTable[1] || ctx->_ShineTable[1]->shininess != shininess)
+ validate_shine_table( ctx, 1, shininess );
for (i = 0 ; i < MAX_LIGHTS ; i++)
if (ctx->Light.Light[i]._SpotExpTable[0][0] == -1)