diff options
Diffstat (limited to 'src/shader_recompiler/backend/glsl/var_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/var_alloc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glsl/var_alloc.cpp b/src/shader_recompiler/backend/glsl/var_alloc.cpp index 1ab64add4..0ae56651e 100644 --- a/src/shader_recompiler/backend/glsl/var_alloc.cpp +++ b/src/shader_recompiler/backend/glsl/var_alloc.cpp | |||
| @@ -58,13 +58,13 @@ std::string FormatFloat(std::string_view value, IR::Type type) { | |||
| 58 | // TODO: Confirm FP64 nan/inf | 58 | // TODO: Confirm FP64 nan/inf |
| 59 | if (type == IR::Type::F32) { | 59 | if (type == IR::Type::F32) { |
| 60 | if (value == "nan") { | 60 | if (value == "nan") { |
| 61 | return "uintBitsToFloat(0x7fc00000)"; | 61 | return "utof(0x7fc00000)"; |
| 62 | } | 62 | } |
| 63 | if (value == "inf") { | 63 | if (value == "inf") { |
| 64 | return "uintBitsToFloat(0x7f800000)"; | 64 | return "utof(0x7f800000)"; |
| 65 | } | 65 | } |
| 66 | if (value == "-inf") { | 66 | if (value == "-inf") { |
| 67 | return "uintBitsToFloat(0xff800000)"; | 67 | return "utof(0xff800000)"; |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | if (value.find_first_of('e') != std::string_view::npos) { | 70 | if (value.find_first_of('e') != std::string_view::npos) { |