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>
Tue, 29 Jul 2008 23:16:59 +0000 (17:16 -0600)
src/mesa/shader/slang/slang_codegen.c

index 32ee71f42aea9970e548b9cadf9ce18241972940..88614cb033314d652be3c468820bea39956c8f65 100644 (file)
@@ -2903,14 +2903,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;
@@ -2918,14 +2918,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: