diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-12-01 18:32:47 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-01-06 09:04:31 -0700 |
commit | 525145a9f6968851ed97fb647261df3d8028e105 (patch) | |
tree | 4ea4516fc909a38e1be6c9ccbad4c2fbb05b715c /src/mesa/main | |
parent | aeb3caeba5be5897bce4c25b84496a171711952b (diff) |
mesa: fix conditional in save_Lightfv(), bug 18838
(cherry picked from commit 1e2f57425153d73646fde7c91c16aa5559491556)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/dlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index ffe6dbfe08..44341c5228 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -2002,7 +2002,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; |