equal
deleted
inserted
replaced
7318 { |
7318 { |
7319 fail(ctx, "Bogus preshader FXLC block."); |
7319 fail(ctx, "Bogus preshader FXLC block."); |
7320 return; |
7320 return; |
7321 } // if |
7321 } // if |
7322 |
7322 |
7323 MOJOSHADER_preshaderOperand *operand = &inst->operands[1]; |
7323 MOJOSHADER_preshaderOperand *operand = inst->operands; |
7324 while (operand_count--) |
7324 while (operand_count--) |
7325 { |
7325 { |
7326 const unsigned int item = (unsigned int) SWAP32(fxlc.tokens[2]); |
7326 const unsigned int item = (unsigned int) SWAP32(fxlc.tokens[2]); |
7327 |
|
7328 if (operand_count == 0) // List destination first. |
|
7329 operand = &inst->operands[0]; |
|
7330 |
7327 |
7331 // !!! FIXME: don't know what first token does. |
7328 // !!! FIXME: don't know what first token does. |
7332 switch (SWAP32(fxlc.tokens[1])) |
7329 switch (SWAP32(fxlc.tokens[1])) |
7333 { |
7330 { |
7334 case 1: // literal from CLIT block. |
7331 case 1: // literal from CLIT block. |