From ce9105a13052cd3ec1d7c10b9c9cc18f5ecc671f Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 6 Nov 2020 14:54:13 -0300 Subject: [PATCH] Support single precision contants for double precision operations (#1673) --- Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs index 2ec44277..6d43ed0e 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs @@ -10,7 +10,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl public static bool TryFormat(int value, VariableType dstType, out string formatted) { - if (dstType == VariableType.F32) + if (dstType == VariableType.F32 || dstType == VariableType.F64) { return TryFormatFloat(BitConverter.Int32BitsToSingle(value), out formatted); }