mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12: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"
|
#include "VKGSRender.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -480,6 +480,12 @@ void VKGSRender::flip(const rsx::display_flip_info_t& info)
|
||||||
default:
|
default:
|
||||||
vk::die_with_error(HERE, status);
|
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
|
// Confirm that the driver did not silently fail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue