From efc8c3f4a9d130a5589d244c9abb93156f94d569 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 9 Feb 2020 13:01:14 +0300 Subject: [PATCH] vk: Fixup for VK_ERROR_SUBOPTIMAL_KHR - break from a switch does not break out of the external scope! --- rpcs3/Emu/RSX/VK/VKPresent.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKPresent.cpp b/rpcs3/Emu/RSX/VK/VKPresent.cpp index 3cd355f01e..9e51b66df8 100644 --- a/rpcs3/Emu/RSX/VK/VKPresent.cpp +++ b/rpcs3/Emu/RSX/VK/VKPresent.cpp @@ -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