projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5233ca8
)
fixed segfault (NULL _ShineTable[0]) in shade_rastpos()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 5 Jul 2001 15:31:21 +0000
(15:31 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 5 Jul 2001 15:31:21 +0000
(15:31 +0000)
src/mesa/main/rastpos.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/rastpos.c
b/src/mesa/main/rastpos.c
index 348cfa7c0a8bf5f3eaa83f7bce51a6ed81c71436..83f84683141fd8ade357c527dea3dd1ddf49a17e 100644
(file)
--- a/
src/mesa/main/rastpos.c
+++ b/
src/mesa/main/rastpos.c
@@
-1,4
+1,4
@@
-/* $Id: rastpos.c,v 1.2
8 2001/06/26 21:15:36
brianp Exp $ */
+/* $Id: rastpos.c,v 1.2
9 2001/07/05 15:31:21
brianp Exp $ */
/*
* Mesa 3-D graphics library
@@
-131,6
+131,9
@@
shade_rastpos(GLcontext *ctx,
GLfloat diffuseColor[4], specularColor[4];
GLfloat diffuse = 0, specular = 0;
+ if (!ctx->_ShineTable[0] || !ctx->_ShineTable[1])
+ _mesa_validate_all_lighting_tables( ctx );
+
COPY_3V(diffuseColor, base[0]);
diffuseColor[3] = sumA[0];
ASSIGN_4V(specularColor, 0.0, 0.0, 0.0, 0.0);