summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 07:27:12 +0200
committerbunnei <bunneidev@gmail.com>2018-08-08 07:45:23 +0200
commite542356d0cc37b61621da8d2b376d32407ec8eff (patch)
treeff3035337894e3e00320dea96754a24ef3562ea7 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp
parentMerge pull request #964 from Hexagon12/lower-logs (diff)
downloadyuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar.gz
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar.bz2
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar.lz
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar.xz
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.tar.zst
yuzu-e542356d0cc37b61621da8d2b376d32407ec8eff.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
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.