From db945f6aed82563e88a5f7552d6df68ae5f96d38 Mon Sep 17 00:00:00 2001 From: DH Date: Thu, 6 Mar 2025 16:41:31 +0300 Subject: [PATCH] android: do not invalidate swapchain on VK_SUBOPTIMAL_KHR Workaround --- rpcs3/Emu/RSX/VK/VKPresent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKPresent.cpp b/rpcs3/Emu/RSX/VK/VKPresent.cpp index b6d0496fd9..6bc09588d4 100644 --- a/rpcs3/Emu/RSX/VK/VKPresent.cpp +++ b/rpcs3/Emu/RSX/VK/VKPresent.cpp @@ -116,7 +116,9 @@ void VKGSRender::present(vk::frame_context_t *ctx) case VK_SUCCESS: break; case VK_SUBOPTIMAL_KHR: +#ifndef ANDROID should_reinitialize_swapchain = true; +#endif break; case VK_ERROR_OUT_OF_DATE_KHR: swapchain_unavailable = true;