From 8ab76a7bd4b8abd1b1097abe8dab88f3af6de933 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 13 Apr 2018 15:53:16 -0300 Subject: [PATCH] [GPU] Do not use the f suffix on float contants on the shader glsl code --- Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs b/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs index 3f0c9f72..b7ed5341 100644 --- a/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs +++ b/Ryujinx.Graphics/Gal/Shader/GlslDecompiler.cs @@ -428,7 +428,7 @@ namespace Ryujinx.Graphics.Gal.Shader private string GetValue(ShaderIrOperImmf Immf) { - return Immf.Value.ToString(CultureInfo.InvariantCulture) + "f"; + return Immf.Value.ToString(CultureInfo.InvariantCulture); } private string GetName(ShaderIrOperPred Pred) @@ -691,7 +691,7 @@ namespace Ryujinx.Graphics.Gal.Shader { float Value = BitConverter.Int32BitsToSingle(Imm.Value); - return Value.ToString(CultureInfo.InvariantCulture) + "f"; + return Value.ToString(CultureInfo.InvariantCulture); } break; }