Преглед изворни кода

Remove component operand for texture gather with depth compare (#6247)

gdkchan пре 2 година
родитељ
комит
24c8b0edc0
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs

+ 4 - 1
src/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs

@@ -592,7 +592,10 @@ namespace Ryujinx.Graphics.Shader.Instructions
                     flags |= TextureFlags.Offset;
                 }
 
-                sourcesList.Add(Const((int)tld4sOp.TexComp));
+                if (!tld4sOp.Dc)
+                {
+                    sourcesList.Add(Const((int)tld4sOp.TexComp));
+                }
             }
             else
             {