From 581bd1d12a0c8f68110519196673b11940887143 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 22 Nov 2016 13:19:33 +1100 Subject: [PATCH] glsl: fix NULL check Fixes copy and paste error in 9d96d3803ab --- src/compiler/glsl/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2