projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e476acb
)
mesa: fix conditional in save_Lightfv(), bug 18838
author
Brian
<brian.paul@tungstengraphics.com>
Tue, 2 Dec 2008 01:32:47 +0000
(18:32 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 2 Dec 2008 01:32:47 +0000
(18:32 -0700)
src/mesa/main/dlist.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/dlist.c
b/src/mesa/main/dlist.c
index c7db435506e8a043c9df59267eb0d52c7fe0071d..d3aee196c744af844fe1418efb0e54e10b1095b3 100644
(file)
--- a/
src/mesa/main/dlist.c
+++ b/
src/mesa/main/dlist.c
@@
-2004,7
+2004,7
@@
save_Lightfv(GLenum light, GLenum pname, const GLfloat *params)
Node *n;
ASSERT_OUTSIDE_SAVE_BEGIN_END_AND_FLUSH(ctx);
n = ALLOC_INSTRUCTION(ctx, OPCODE_LIGHT, 6);
- if (
OPCODE_LIGHT
) {
+ if (
n
) {
GLint i, nParams;
n[1].e = light;
n[2].e = pname;