mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-23 06:40:49 +00:00
vk: Proper shutdown to avoid destroying resources still in use
This commit is contained in:
parent
6013b0782e
commit
13825c9ef7
@ -633,7 +633,11 @@ VKGSRender::~VKGSRender()
|
||||
return;
|
||||
}
|
||||
|
||||
m_current_command_buffer->reset();
|
||||
//Close recording and wait for all to finish
|
||||
CHECK_RESULT(vkEndCommandBuffer(*m_current_command_buffer));
|
||||
|
||||
for (auto &cb : m_primary_cb_list)
|
||||
if (cb.pending) cb.wait();
|
||||
|
||||
//Wait for device to finish up with resources
|
||||
vkDeviceWaitIdle(*m_device);
|
||||
|
Loading…
x
Reference in New Issue
Block a user