Merge pull request #2001 from PatrickvL/fix_ps_sum_reg

Pixel shader fix XFC SUM
This commit is contained in:
Luke Usher 2020-10-23 09:10:23 +01:00 committed by GitHub
commit 724a1ca684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);