diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2021-06-23 18:31:14 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 23:31:14 +0200 |
| commit | c71ae9c85c70bb2174807e21da16db427097c690 (patch) | |
| tree | e3424e77a118045937462d3053dd3443817051bf /Ryujinx.Graphics.Shader/Translation | |
| parent | ab9d4b862d6ef5bc67cbb1afe0e1f55f24c028fa (diff) | |
Fix shader texture LOD query (#2397)
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/Rewriter.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |
