vk: Fixup for VK_ERROR_SUBOPTIMAL_KHR

- break from a switch does not break out of the external scope!
This commit is contained in:
kd-11 2020-02-09 13:01:14 +03:00 committed by kd-11
parent 792c481f6d
commit efc8c3f4a9

View File

@ -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