mesa: fix KHR_no_error SSO support
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 12 May 2017 05:29:57 +0000 (15:29 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 13 May 2017 10:56:34 +0000 (20:56 +1000)
Fixes: 00c5119a5e821 ("mesa: add KHR_no_error support for glUseProgramStages()")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/mesa/main/pipelineobj.c

index 67a8fc8cb9590a0c312cb3472ff35995ce178b3d..0d1d57cb7e6a5e38fc702885d2717c6e4b0eae79 100644 (file)
@@ -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