summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-10-30 00:11:57 +0100
committerMarek Olšák <[email protected]>2013-10-30 00:14:35 +0100
commite929e2773736cdb05c8cbd2188360c58e5802978 (patch)
tree0ac99a2b74255379efb2e6e993cdb831303e9627 /src/glsl
parent7e414b58640aee6e243d337e72cea290c354f632 (diff)
glsl: fix crash introduced by the previous commit
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_dead_builtin_varyings.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}