From 462b93f62c5edf5c2002c8c8d60b6f78e768d4d2 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Mon, 21 Aug 2017 23:04:11 +0300 Subject: [PATCH] vulkan: Gracefully handle back-to-back flip request spam --- rpcs3/Emu/RSX/VK/VKGSRender.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/VKGSRender.cpp b/rpcs3/Emu/RSX/VK/VKGSRender.cpp index a2b8d41d0d..519ba6052d 100644 --- a/rpcs3/Emu/RSX/VK/VKGSRender.cpp +++ b/rpcs3/Emu/RSX/VK/VKGSRender.cpp @@ -2242,8 +2242,14 @@ void VKGSRender::flip(int buffer) } else if (m_current_frame->swap_command_buffer) { - //Unreachable - fmt::throw_exception("Possible data corruption on frame context storage detected"); + if (m_draw_calls > 0) + { + //Unreachable + fmt::throw_exception("Possible data corruption on frame context storage detected"); + } + + //There were no draws and back-to-back flips happened + process_swap_request(m_current_frame, true); } if (!resize_screen)