From: Timothy Arceri Date: Tue, 22 Nov 2016 02:19:33 +0000 (+1100) Subject: glsl: fix NULL check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=581bd1d12a0c8f68110519196673b11940887143;p=mesa.git glsl: fix NULL check Fixes copy and paste error in 9d96d3803ab --- diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 61a029c6c56..845a7938f91 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -2194,7 +2194,7 @@ link_intrastage_shaders(void *mem_ctx, ctx->Driver.NewProgram(ctx, _mesa_shader_stage_to_program(shader_list[0]->Stage), prog->Name); - if (!prog) { + if (!gl_prog) { prog->data->LinkStatus = false; _mesa_delete_linked_shader(ctx, linked); return NULL;