diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-03-15 22:43:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-15 22:43:40 +0100 |
commit | d91a880f119694f3eeaa6b7b2dbc62d6320c2214 (patch) | |
tree | 89a91f8be6e9e7f40e57b19e34cb0d524733d4a4 | |
parent | Merge pull request #3508 from FernandoS27/page-table (diff) | |
parent | vk_shader_decompiler: fix linux build (diff) | |
download | yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar.gz yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar.bz2 yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar.lz yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar.xz yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.tar.zst yuzu-d91a880f119694f3eeaa6b7b2dbc62d6320c2214.zip |
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index b2c298051..51ecb5567 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -837,7 +837,7 @@ private: Decorate(id, spv::Decoration::Offset, static_cast<u32>(tfb->offset)); } - element += static_cast<u8>(num_components); + element = static_cast<u8>(static_cast<std::size_t>(element) + num_components); } } |