From b9d83cc97ee1cb8c60d9b01c162bab742567fe6e Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 14 Nov 2021 21:37:07 -0300 Subject: Fix shader integer from/to double conversion (#2831) --- Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs') diff --git a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs index ba1fdf17..33cc6af7 100644 --- a/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs +++ b/Ryujinx.Graphics.Shader/Instructions/InstEmitTexture.cs @@ -939,7 +939,7 @@ namespace Ryujinx.Graphics.Shader.Instructions tempDest = context.FPMultiply(tempDest, ConstF(256.0f)); - Operand fixedPointValue = context.FPConvertToS32(tempDest); + Operand fixedPointValue = context.FP32ConvertToS32(tempDest); context.Copy(GetDest(), fixedPointValue); } -- cgit v1.2.3