summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-09 01:17:01 +0200
committerGitHub <noreply@github.com>2018-08-09 01:17:01 +0200
commitcf917a5e9342f53824b6fa70115b06378f10f517 (patch)
tree2f735b11c82502d1dec5397899206cefb4f68626 /src/video_core/renderer_opengl
parentMerge pull request #981 from bunnei/cbuf-corrupt (diff)
parentgl_shader_decompiler: Let OpenGL interpret floats. (diff)
downloadyuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar.gz
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar.bz2
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar.lz
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar.xz
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.tar.zst
yuzu-cf917a5e9342f53824b6fa70115b06378f10f517.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-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.