Avoid cast for constant assignments
This commit is contained in:
parent
17a777fbae
commit
f045885b25
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
|
||||||
dest = Instructions.GetExpression(context, asg.Destination);
|
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 + ";");
|
context.AppendLine(dest + " = " + src + ";");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue