소스 검색

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

gdkchan 6 년 전
부모
커밋
81cca88bcd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);