From f91046bf8d3b584d336a5badf4b7e51f73aac1f3 Mon Sep 17 00:00:00 2001 From: makigumo Date: Sun, 15 Mar 2020 18:00:14 +0100 Subject: vk_shader_decompiler: fix linux build --- src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core') 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(tfb->offset)); } - element += static_cast(num_components); + element = static_cast(static_cast(element) + num_components); } } -- cgit v1.2.3