diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-08 19:17:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-08 19:17:01 -0400 |
| commit | cf917a5e9342f53824b6fa70115b06378f10f517 (patch) | |
| tree | 2f735b11c82502d1dec5397899206cefb4f68626 /src/video_core/renderer_opengl | |
| parent | 9ceceb212f1381cdae4f1df769e44216cd70dedb (diff) | |
| parent | e542356d0cc37b61621da8d2b376d32407ec8eff (diff) | |
Merge pull request #976 from bunnei/shader-imm
gl_shader_decompiler: Let OpenGL interpret floats.
Diffstat (limited to 'src/video_core/renderer_opengl')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index e3217db81..1ff71d682 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -602,12 +602,12 @@ private: /// Generates code representing a 19-bit immediate value static std::string GetImmediate19(const Instruction& instr) { - return std::to_string(instr.alu.GetImm20_19()); + return fmt::format("uintBitsToFloat({})", instr.alu.GetImm20_19()); } /// Generates code representing a 32-bit immediate value static std::string GetImmediate32(const Instruction& instr) { - return std::to_string(instr.alu.GetImm20_32()); + return fmt::format("uintBitsToFloat({})", instr.alu.GetImm20_32()); } /// Generates code representing a texture sampler. |
