summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-11-22 13:19:33 +1100
committerTimothy Arceri <[email protected]>2016-11-22 14:40:26 +1100
commit581bd1d12a0c8f68110519196673b11940887143 (patch)
treeca7e3b79794d78f8c099d836c6027690dc68b8e1 /src/compiler/glsl
parent807bc6ea9ee60240b44ca906e875f23d6e4f0ef7 (diff)
glsl: fix NULL check
Fixes copy and paste error in 9d96d3803ab
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r--src/compiler/glsl/linker.cpp2
1 files changed, 1 insertions, 1 deletions
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;