summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-09-05 19:34:25 +0000
committerBrian Paul <[email protected]>2003-09-05 19:34:25 +0000
commit054fedb4558788bf9e40936faddad2cb75009998 (patch)
tree981afd769580d1b4bef319751c801e9598509d7d
parent94f944762d5ea51a1a573184ec2583c75b84b121 (diff)
fix typo
-rw-r--r--src/mesa/main/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/program.c b/src/mesa/main/program.c
index e7a3ed9f595..0d1a53c7616 100644
--- a/src/mesa/main/program.c
+++ b/src/mesa/main/program.c
@@ -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 {