fix typo
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2003 19:34:25 +0000 (19:34 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2003 19:34:25 +0000 (19:34 +0000)
src/mesa/main/program.c

index e7a3ed9f595b3e0a609497735a4ea8212b1dcaf9..0d1a53c76163551e55c3030f37eadb80a5df95bb 100644 (file)
@@ -1133,7 +1133,7 @@ _mesa_GetProgramRegisterfvMESA(GLenum target,
             /* try user-defined identifiers */
             const GLfloat *value = _mesa_lookup_parameter_value(
                        ctx->FragmentProgram.Current->Parameters, -1, reg);
-            if (reg) {
+            if (value) {
                COPY_4V(v, value);
             }
             else {