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/Instructions/InstEmitTexture.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Ryujinx.Graphics.Shader/Instructions') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index 69d3ffb3..b59f0d31 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -889,7 +889,7 @@ namespace Ryujinx.Graphics.Shader.Instructions type, flags, handle, - compIndex, + compIndex ^ 1, // The instruction component order is the inverse of GLSL's. tempDest, sources); @@ -897,9 +897,9 @@ namespace Ryujinx.Graphics.Shader.Instructions tempDest = context.FPMultiply(tempDest, ConstF(256.0f)); - Operand finalValue = context.FPConvertToS32(tempDest); + Operand fixedPointValue = context.FPConvertToS32(tempDest); - context.Copy(dest, finalValue); + context.Copy(dest, fixedPointValue); } } } -- cgit v1.2.3