diff options
author | Brian Paul <[email protected]> | 2008-07-21 16:04:56 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-07-21 16:04:56 -0600 |
commit | c9a7ee2d0044c01aeb6646f0235b030ccd7ba844 (patch) | |
tree | 3cb5536c2edcb779a44cb7490ad3d8d3515b80fd /src/mesa | |
parent | 5ba32b79d8df3403212888dbdc669abf9d783359 (diff) |
mesa: added null ptr check (error handling case)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_emit.c | 3 |
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 |