summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-26 15:11:23 +0100
committerGitHub <noreply@github.com>2019-11-26 15:11:23 +0100
commit31daaa79119a2a863adf4216c7ce64495dc71344 (patch)
treebfa979a8e0da8564748215e5c28cdb26bb788139 /src
parentMerge pull request #3162 from bunnei/fix-shared-ptr-crash (diff)
parentgl_shader_decompiler: Fix casts from fp32 to f16 (diff)
downloadyuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar.gz
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar.bz2
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar.lz
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar.xz
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.tar.zst
yuzu-31daaa79119a2a863adf4216c7ce64495dc71344.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index b17c4e703..0e644564a 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1469,7 +1469,8 @@ private:
}
Expression HCastFloat(Operation operation) {
- return {fmt::format("vec2({})", VisitOperand(operation, 0).AsFloat()), Type::HalfFloat};
+ return {fmt::format("vec2({}, 0.0f)", VisitOperand(operation, 0).AsFloat()),
+ Type::HalfFloat};
}
Expression HUnpack(Operation operation) {