From 054fedb4558788bf9e40936faddad2cb75009998 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 5 Sep 2003 19:34:25 +0000 Subject: [PATCH] fix typo --- src/mesa/main/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2