diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-03-10 00:08:48 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-13 22:33:05 +0100 |
commit | 47459f6a36f5bd539b6aedf9b07ffbebb0a2be32 (patch) | |
tree | 5ec624c5095698b21b555c8904f27d8fff987ae7 /src/video_core | |
parent | vk_rasterizer: Implement transform feedback binding zero (diff) | |
download | yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar.gz yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar.bz2 yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar.lz yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar.xz yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.tar.zst yuzu-47459f6a36f5bd539b6aedf9b07ffbebb0a2be32.zip |
Diffstat (limited to '')
-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 3117a8d74..ed78bba02 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -839,7 +839,7 @@ private: } std::optional<VaryingTFB> GetTransformFeedbackInfo(Attribute::Index index, u8 element = 0) { - const u8 location = static_cast<u8>(index) * 4 + element; + const u8 location = static_cast<u8>(static_cast<u32>(index) * 4 + element); const auto it = transform_feedback.find(location); if (it == transform_feedback.end()) { return {}; |