From e929e2773736cdb05c8cbd2188360c58e5802978 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 30 Oct 2013 00:11:57 +0100 Subject: [PATCH] glsl: fix crash introduced by the previous commit --- src/glsl/opt_dead_builtin_varyings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/opt_dead_builtin_varyings.cpp b/src/glsl/opt_dead_builtin_varyings.cpp index 7099b9ff8e1..b336bc0a8a0 100644 --- a/src/glsl/opt_dead_builtin_varyings.cpp +++ b/src/glsl/opt_dead_builtin_varyings.cpp @@ -512,7 +512,7 @@ do_dead_builtin_varyings(struct gl_context *ctx, tfeedback_decl *tfeedback_decls) { /* Lower the gl_FragData array to separate variables. */ - if (consumer->Type == GL_FRAGMENT_SHADER) { + if (consumer && consumer->Type == GL_FRAGMENT_SHADER) { lower_fragdata_array(consumer->ir); } -- 2.30.2