summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-11-26 02:00:42 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-11-26 02:22:33 +0100
commitef4446cb11b649cbae5d403239d979b8d99e357c (patch)
tree2e1b09fe1781e7a90793a0b968195f65ad51a503 /src/video_core
parentMerge pull request #3160 from DarkLordZach/opt-ea-clang-fmt (diff)
downloadyuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar.gz
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar.bz2
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar.lz
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar.xz
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.tar.zst
yuzu-ef4446cb11b649cbae5d403239d979b8d99e357c.zip
Diffstat (limited to 'src/video_core')
-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) {