Fix how our current pixel shader conversion calculates the final combiner special purpose register 'sum' : it was accidentally multiplying instead of adding it's arguments!

This commit is contained in:
patrickvl 2020-10-23 01:05:24 +02:00
parent 1ee123900b
commit a412c80b24
1 changed files with 2 additions and 2 deletions

View File

@ -3925,8 +3925,8 @@ void PSH_XBOX_SHADER::ConvertXFCToNative(int i)
if (NeedsSum)
{
// Add a new opcode that calculates r0*v1 :
Ins.Initialize(PO_MUL);
// Add a new opcode that calculates r0+v1 :
Ins.Initialize(PO_ADD);
Ins.Output[0].SetRegister(PARAM_T, FakeRegNr_Sum, MASK_RGBA); // 'r2'
Ins.Parameters[0].SetRegister(PARAM_R, 0, MASK_RGB);