Fix shader output color buffer index when non-sequential render targets are used

This commit is contained in:
gdkchan 2020-01-18 18:54:50 -03:00
parent c5f872c70a
commit d2a8c5fac5

View file

@ -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);