Переглянути джерело

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

gdkchan 2 роки тому
батько
коміт
24c8b0edc0

+ 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
             {