mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
vk: Fixup for VK_ERROR_SUBOPTIMAL_KHR
- break from a switch does not break out of the external scope!
This commit is contained in:
parent
792c481f6d
commit
efc8c3f4a9
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "VKGSRender.h"
|
||||
|
||||
|
||||
|
@ -480,6 +480,12 @@ void VKGSRender::flip(const rsx::display_flip_info_t& info)
|
|||
default:
|
||||
vk::die_with_error(HERE, status);
|
||||
}
|
||||
|
||||
if (should_reinitialize_swapchain)
|
||||
{
|
||||
// Image is valid, new swapchain will be generated later
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Confirm that the driver did not silently fail
|
||||
|
|
Loading…
Add table
Reference in a new issue