mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-20 10:24:58 +00:00
hot-fix: catch device loss on presentation (prevents deadlock in waiting)
This commit is contained in:
parent
873fbc469b
commit
c9f894c45a
1 changed files with 2 additions and 0 deletions
|
@ -446,6 +446,8 @@ Frame* RendererVulkan::GetRenderFrame() {
|
|||
|
||||
// Wait for the presentation to be finished so all frame resources are free
|
||||
while (wait() != vk::Result::eSuccess) {
|
||||
ASSERT_MSG(result != vk::Result::eErrorDeviceLost,
|
||||
"Device lost during waiting for a frame");
|
||||
// Retry if the waiting times out
|
||||
if (result == vk::Result::eTimeout) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue