From: Timothy Arceri Date: Fri, 12 May 2017 05:29:57 +0000 (+1000) Subject: mesa: fix KHR_no_error SSO support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=812ff333bf266e848ad0473d2ca1deb83c09c4d3;p=mesa.git mesa: fix KHR_no_error SSO support Fixes: 00c5119a5e821 ("mesa: add KHR_no_error support for glUseProgramStages()") Reviewed-by: Samuel Pitoiset --- 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