vk: Fixup for VK_ERROR_SUBOPTIMAL_KHR
- break from a switch does not break out of the external scope!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user