summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 {