mesa: glsl: added null ptr check
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 19:07:05 +0000 (13:07 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 4 Aug 2008 23:14:49 +0000 (17:14 -0600)
src/mesa/shader/slang/slang_codegen.c

index 691d10b8f1dde0514e627abf05349a7166b77af7..117e82a39027ca01909f4805d54a4dcf7531f9bf 100644 (file)
@@ -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);