summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-12-01 18:32:47 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-12-01 18:32:47 -0700
commit1e2f57425153d73646fde7c91c16aa5559491556 (patch)
treee06d5ff55314dc7bdde0df5d68428ea67d24b259
parente476acb1051ae1a7e5e2be35a89488a8e5b07ff4 (diff)
mesa: fix conditional in save_Lightfv(), bug 18838
-rw-r--r--src/mesa/main/dlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index c7db435506e..d3aee196c74 100644
--- 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;