summaryrefslogtreecommitdiff
path: root/src/mesa/main/program.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-09-05 19:34:25 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-09-05 19:34:25 +0000
commit054fedb4558788bf9e40936faddad2cb75009998 (patch)
tree981afd769580d1b4bef319751c801e9598509d7d /src/mesa/main/program.c
parent94f944762d5ea51a1a573184ec2583c75b84b121 (diff)
fix typo
Diffstat (limited to 'src/mesa/main/program.c')
-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 e7a3ed9f59..0d1a53c761 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 {