From 19ded3809fbeae619eb6235319963637ea9564ef Mon Sep 17 00:00:00 2001 From: oltolm Date: Sun, 22 Jan 2023 09:56:36 +0100 Subject: [PATCH] fix out-of-bounds in VKGSRenderTypes.hpp --- rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp b/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp index c927acdd0a..dbce50075a 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp +++ b/rpcs3/Emu/RSX/VK/VKGSRenderTypes.hpp @@ -364,7 +364,7 @@ namespace vk inline command_buffer_chunk* get() { - return &m_cb_list[m_current_index]; + return &m_cb_list[m_current_index % Count]; } }; }