mesa: fix +=, -=, etc. operators
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2008 22:04:24 +0000 (16:04 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 21 Jul 2008 22:04:24 +0000 (16:04 -0600)
src/mesa/shader/slang/slang_codegen.c

index 8f5c95c06a9d999418fea58d08342367ced687a3..cd37a33a488e6713db840eb33897553d7e0d899c 100644 (file)
@@ -2925,14 +2925,14 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
       {
         slang_ir_node *n;
          assert(oper->num_children == 2);
-        n = _slang_gen_function_call_name(A, "+=", oper, &oper->children[0]);
+        n = _slang_gen_function_call_name(A, "+=", oper, NULL);
         return n;
       }
    case SLANG_OPER_SUBASSIGN:
       {
         slang_ir_node *n;
          assert(oper->num_children == 2);
-        n = _slang_gen_function_call_name(A, "-=", oper, &oper->children[0]);
+        n = _slang_gen_function_call_name(A, "-=", oper, NULL);
         return n;
       }
       break;
@@ -2940,14 +2940,14 @@ _slang_gen_operation(slang_assemble_ctx * A, slang_operation *oper)
       {
         slang_ir_node *n;
          assert(oper->num_children == 2);
-        n = _slang_gen_function_call_name(A, "*=", oper, &oper->children[0]);
+        n = _slang_gen_function_call_name(A, "*=", oper, NULL);
         return n;
       }
    case SLANG_OPER_DIVASSIGN:
       {
         slang_ir_node *n;
          assert(oper->num_children == 2);
-        n = _slang_gen_function_call_name(A, "/=", oper, &oper->children[0]);
+        n = _slang_gen_function_call_name(A, "/=", oper, NULL);
         return n;
       }
    case SLANG_OPER_LOGICALAND: