From f045885b25939bf04721011be40c1eff999904ee Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 29 Mar 2019 22:23:16 -0300 Subject: [PATCH] Avoid cast for constant assignments --- Ryujinx.Graphics/Shader/CodeGen/Glsl/GlslGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Graphics/Shader/CodeGen/Glsl/GlslGenerator.cs b/Ryujinx.Graphics/Shader/CodeGen/Glsl/GlslGenerator.cs index a42d4db139..7060d21c52 100644 --- a/Ryujinx.Graphics/Shader/CodeGen/Glsl/GlslGenerator.cs +++ b/Ryujinx.Graphics/Shader/CodeGen/Glsl/GlslGenerator.cs @@ -74,7 +74,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl dest = Instructions.GetExpression(context, asg.Destination); } - string src = ReinterpretCast(Instructions.GetExpression(context, asg.Source), srcType, dstType); + string src = ReinterpretCast(context, asg.Source, srcType, dstType); context.AppendLine(dest + " = " + src + ";"); }