From bca3a3f4ed56ae1ad7385d1a9ab8fd3408134b23 Mon Sep 17 00:00:00 2001 From: kd-11 <15904127+kd-11@users.noreply.github.com> Date: Sat, 10 Oct 2020 12:02:55 +0300 Subject: [PATCH] vk: Open CB before doing frame cleanup so that callbacks work (#9041) --- rpcs3/Emu/RSX/VK/VKPresent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKPresent.cpp b/rpcs3/Emu/RSX/VK/VKPresent.cpp index 8daabdeb06..277b63aa0e 100644 --- a/rpcs3/Emu/RSX/VK/VKPresent.cpp +++ b/rpcs3/Emu/RSX/VK/VKPresent.cpp @@ -166,10 +166,10 @@ void VKGSRender::queue_swap_request() m_current_cb_index = (m_current_cb_index + 1) % VK_MAX_ASYNC_CB_COUNT; m_current_command_buffer = &m_primary_cb_list[m_current_cb_index]; m_current_command_buffer->reset(); + m_current_command_buffer->begin(); // Set up new pointers for the next frame advance_queued_frames(); - open_command_buffer(); } void VKGSRender::frame_context_cleanup(vk::frame_context_t *ctx, bool free_resources)