浏览代码

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
             {