From bb7ab5690ccdca9b03d062a2661ea284514c9599 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 1 Dec 2022 01:48:53 +1000 Subject: [PATCH] GSRunner: Fix imgui breaking if skip dupe frames is on --- pcsx2-gsrunner/Main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcsx2-gsrunner/Main.cpp b/pcsx2-gsrunner/Main.cpp index 987fae2d21..7451850b26 100644 --- a/pcsx2-gsrunner/Main.cpp +++ b/pcsx2-gsrunner/Main.cpp @@ -294,7 +294,12 @@ VsyncMode Host::GetEffectiveVSyncMode() bool Host::BeginPresentFrame(bool frame_skip) { - return g_host_display->BeginPresent(frame_skip); + if (g_host_display->BeginPresent(frame_skip)) + return true; + + // don't render imgui + ImGuiManager::NewFrame(); + return false; } void Host::EndPresentFrame()