summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-21 16:04:56 -0600
committerBrian Paul <[email protected]>2008-07-29 17:17:12 -0600
commit65db8c9518036bee7110befb4927f2995c7a125c (patch)
tree0e58ad696cb17585ceaf6415100459f85eb1406a /src
parent19d44b95feaeb3d983a84827471f81afc079faf0 (diff)
mesa: added null ptr check (error handling case)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_emit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_emit.c b/src/mesa/shader/slang/slang_emit.c
index 291fd7c6ddf..c01ec3c185f 100644
--- a/src/mesa/shader/slang/slang_emit.c
+++ b/src/mesa/shader/slang/slang_emit.c
@@ -1225,6 +1225,9 @@ emit_if(slang_emit_info *emitInfo, slang_ir_node *n)
}
}
+ if (!n->Children[0]->Store)
+ return NULL;
+
#if 0
assert(n->Children[0]->Store->Size == 1); /* a bool! */
#endif