From 812ff333bf266e848ad0473d2ca1deb83c09c4d3 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 12 May 2017 15:29:57 +1000 Subject: mesa: fix KHR_no_error SSO support Fixes: 00c5119a5e821 ("mesa: add KHR_no_error support for glUseProgramStages()") Reviewed-by: Samuel Pitoiset --- src/mesa/main/pipelineobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main') 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 -- cgit v1.2.3