diff options
Diffstat (limited to 'src/mesa/main/program.c')
-rw-r--r-- | src/mesa/main/program.c | 2 |
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 { |