Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed off-by-one error in testparse.
  • Loading branch information
icculus committed Jun 2, 2011
1 parent 7524909 commit d2746e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/testparse.c
Expand Up @@ -143,7 +143,7 @@ static void print_preshader_operand(const MOJOSHADER_preshader *preshader,
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)
Expand Down

0 comments on commit d2746e2

Please sign in to comment.