From 9a647fa3b3431548da687fe716ce78c96bc3bb45 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 1 Jun 2011 05:35:50 -0400 Subject: [PATCH] Fixed wrong array offset in preshader interpreter. (dst operand is first, skip it when loading src operands.) --- mojoshader_effects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mojoshader_effects.c b/mojoshader_effects.c index 9fa9e9e4..1a5c203c 100644 --- a/mojoshader_effects.c +++ b/mojoshader_effects.c @@ -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;