glsl: fix NULL check
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 22 Nov 2016 02:19:33 +0000 (13:19 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 22 Nov 2016 03:40:26 +0000 (14:40 +1100)
Fixes copy and paste error in 9d96d3803ab

src/compiler/glsl/linker.cpp

index 61a029c6c56a8293522b594cdba89f7cb9f4a336..845a7938f9163bcd9ebf3f5ccd8f320888b8dc22 100644 (file)
@@ -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;