mirror of https://github.com/RPCS3/rpcs3.git
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;
|
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
|
//Wait for device to finish up with resources
|
||||||
vkDeviceWaitIdle(*m_device);
|
vkDeviceWaitIdle(*m_device);
|
||||||
|
|
Loading…
Reference in New Issue