diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-04 13:07:05 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-08-04 17:14:49 -0600 |
commit | b57c53b2bc68e23796d59e66cdc5b45899c5585c (patch) | |
tree | 828f707a4740f40c15f19a3175e44fc98aa674eb /src/mesa | |
parent | c610c0d77d2e2d9fe0052f7d1316b3d348b536a0 (diff) |
mesa: glsl: added null ptr check
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 691d10b8f1..117e82a390 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -3385,6 +3385,8 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper) for (i = 0; i < oper->num_children; i++) { slang_ir_node *n = _slang_gen_operation(A, &oper->children[i]); tree = new_seq(tree, n); + if (n) + tree->Store = n->Store; } if (oper->type == SLANG_OPER_NON_INLINED_CALL) { tree = new_function_call(tree, oper->label); |