Skip to content

Commit

Permalink
Fixed wrong array offset in preshader interpreter.
Browse files Browse the repository at this point in the history
(dst operand is first, skip it when loading src operands.)
  • Loading branch information
icculus committed Jun 1, 2011
1 parent 1872b59 commit 9a647fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_effects.c
Expand Up @@ -34,7 +34,7 @@ void MOJOSHADER_runPreshader(const MOJOSHADER_preshader *preshader,

for (instit = 0; instit < preshader->instruction_count; instit++, inst++)
{
const MOJOSHADER_preshaderOperand *operand = inst->operands;
const MOJOSHADER_preshaderOperand *operand = &inst->operands[1];
const int isscalar = (inst->opcode >= scalarstart);
const int elems = inst->element_count;
const int elemsbytes = sizeof (double) * elems;
Expand Down

0 comments on commit 9a647fa

Please sign in to comment.