فهرست منبع

Support single precision contants for double precision operations (#1673)

gdkchan 5 سال پیش
والد
کامیت
ce9105a130
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Ryujinx.Graphics.Shader/CodeGen/Glsl/NumberFormatter.cs

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