mojoshader.c
changeset 1046 097aefb03885
parent 1042 cb6659f80bb9
child 1048 d58bd6348b15
--- a/mojoshader.c	Wed Jun 01 05:35:50 2011 -0400
+++ b/mojoshader.c	Wed Jun 01 13:22:21 2011 -0400
@@ -7320,14 +7320,11 @@
             return;
         } // if
 
-        MOJOSHADER_preshaderOperand *operand = &inst->operands[1];
+        MOJOSHADER_preshaderOperand *operand = inst->operands;
         while (operand_count--)
         {
             const unsigned int item = (unsigned int) SWAP32(fxlc.tokens[2]);
 
-            if (operand_count == 0)  // List destination first.
-                operand = &inst->operands[0];
-
             // !!! FIXME: don't know what first token does.
             switch (SWAP32(fxlc.tokens[1]))
             {