diff options
author | bunnei <bunneidev@gmail.com> | 2019-11-26 15:11:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 15:11:23 +0100 |
commit | 31daaa79119a2a863adf4216c7ce64495dc71344 (patch) | |
tree | bfa979a8e0da8564748215e5c28cdb26bb788139 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #3162 from bunnei/fix-shared-ptr-crash (diff) | |
parent | gl_shader_decompiler: Fix casts from fp32 to f16 (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 3 |
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) { |