Fixed off-by-one error in testparse.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 02 Jun 2011 14:49:30 -0400
changeset 1051 96a838f4e680
parent 1050 56b06b1ebb27
child 1052 0ac978521113
Fixed off-by-one error in testparse.
utils/testparse.c
--- a/utils/testparse.c	Thu Jun 02 03:17:18 2011 -0400
+++ b/utils/testparse.c	Thu Jun 02 14:49:30 2011 -0400
@@ -143,7 +143,7 @@
     const MOJOSHADER_preshaderOperand *operand = &inst->operands[opidx];
     const int elems = inst->element_count;
     const int isscalarop = (inst->opcode >= MOJOSHADER_PRESHADEROP_SCALAR_OPS);
-    const int isscalar = ((isscalarop) && (opidx == 1)); // probably wrong.
+    const int isscalar = ((isscalarop) && (opidx == 0)); // probably wrong.
     int i;
 
     switch (operand->type)