Explorar o código

Fix shader output color buffer index when non-sequential render targets are used (#895)

gdkchan %!s(int64=6) %!d(string=hai) anos
pai
achega
81cca88bcd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Ryujinx.Graphics.Shader/Translation/EmitterContext.cs

+ 1 - 1
Ryujinx.Graphics.Shader/Translation/EmitterContext.cs

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