diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index b2c2980512..51ecb55675 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(tfb->offset)); } - element += static_cast(num_components); + element = static_cast(static_cast(element) + num_components); } }