Mesa (master): mesa: fix conditional in save_Lightfv(), bug 18838

Brian Paul brianp at kemper.freedesktop.org
Tue Dec 2 01:33:04 UTC 2008


Module: Mesa
Branch: master
Commit: 1e2f57425153d73646fde7c91c16aa5559491556
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e2f57425153d73646fde7c91c16aa5559491556

Author: Brian <brian.paul at tungstengraphics.com>
Date:   Mon Dec  1 18:32:47 2008 -0700

mesa: fix conditional in save_Lightfv(), bug 18838

---

 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 c7db435..d3aee19 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;




More information about the mesa-commit mailing list