From 65db8c9518036bee7110befb4927f2995c7a125c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 21 Jul 2008 16:04:56 -0600 Subject: mesa: added null ptr check (error handling case) --- src/mesa/shader/slang/slang_emit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/shader/slang') 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 -- cgit v1.2.3