mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 09:35:27 +00:00
Fix shader output color buffer index when non-sequential render targets are used (#895)
This commit is contained in:
parent
90b4759085
commit
81cca88bcd
|
@ -82,7 +82,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
{
|
||||
if (target.ComponentEnabled(component))
|
||||
{
|
||||
Operand dest = Attribute(AttributeConsts.FragmentOutputColorBase + regIndex * 4);
|
||||
Operand dest = Attribute(AttributeConsts.FragmentOutputColorBase + attachment * 16 + component * 4);
|
||||
|
||||
Operand src = Register(regIndex, RegisterType.Gpr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue