Avoid cast for constant assignments

This commit is contained in:
gdkchan 2019-03-29 22:23:16 -03:00
parent 17a777fbae
commit f045885b25

View file

@ -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 + ";");
}