summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authormakigumo <makigumo@users.noreply.github.com>2020-03-15 18:00:14 +0100
committerGitHub <noreply@github.com>2020-03-15 18:00:14 +0100
commitf91046bf8d3b584d336a5badf4b7e51f73aac1f3 (patch)
tree89a91f8be6e9e7f40e57b19e34cb0d524733d4a4 /src/video_core
parentMerge pull request #3508 from FernandoS27/page-table (diff)
downloadyuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar.gz
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar.bz2
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar.lz
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar.xz
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.tar.zst
yuzu-f91046bf8d3b584d336a5badf4b7e51f73aac1f3.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_shader_decompiler.cpp2
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);
}
}