glsl: fix NULL check

Fixes copy and paste error in 9d96d3803a
This commit is contained in:
Timothy Arceri
2016-11-22 13:19:33 +11:00
parent 807bc6ea9e
commit 581bd1d12a

View 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;