Merge pull request #2001 from PatrickvL/fix_ps_sum_reg
Pixel shader fix XFC SUM
This commit is contained in:
commit
724a1ca684
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue