From c71ae9c85c70bb2174807e21da16db427097c690 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 23 Jun 2021 18:31:14 -0300 Subject: Fix shader texture LOD query (#2397) --- Ryujinx.Graphics.Shader/Translation/Rewriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Translation') diff --git a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs index 912d61f1..84aa7c10 100644 --- a/Ryujinx.Graphics.Shader/Translation/Rewriter.cs +++ b/Ryujinx.Graphics.Shader/Translation/Rewriter.cs @@ -155,7 +155,7 @@ namespace Ryujinx.Graphics.Shader.Translation { return node; } - + bool isGather = (texOp.Flags & TextureFlags.Gather) != 0; bool hasDerivatives = (texOp.Flags & TextureFlags.Derivatives) != 0; bool intCoords = (texOp.Flags & TextureFlags.IntCoords) != 0; @@ -360,7 +360,7 @@ namespace Ryujinx.Graphics.Shader.Translation texOp.Format, texOp.Flags, texOp.Handle, - 1, + 0, lod, lodSources)); -- cgit v1.2.3