aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/pipelineobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c
index 67a8fc8cb95..0d1d57cb7e6 100644
--- a/src/mesa/main/pipelineobj.c
+++ b/src/mesa/main/pipelineobj.c
@@ -265,7 +265,7 @@ _mesa_UseProgramStages_no_error(GLuint pipeline, GLbitfield stages,
struct gl_shader_program *shProg = NULL;
if (prog)
- _mesa_lookup_shader_program(ctx, prog);
+ shProg = _mesa_lookup_shader_program(ctx, prog);
/* Object is created by any Pipeline call but glGenProgramPipelines,
* glIsProgramPipeline and GetProgramPipelineInfoLog