From a2c140c87f8274c564b01feec50254ae73d47396 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 16 Sep 2022 00:09:35 +1000 Subject: [PATCH] VMManager: Ensure MTGS is finished before resetting --- pcsx2/VMManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2/VMManager.cpp b/pcsx2/VMManager.cpp index afd2089700..0835966c44 100644 --- a/pcsx2/VMManager.cpp +++ b/pcsx2/VMManager.cpp @@ -1057,9 +1057,14 @@ void VMManager::Shutdown(bool save_resume_state) // If the fullscreen UI is running, do a hardware reset on the GS // so that the texture cache and targets are all cleared. if (s_gs_open_on_initialize) + { + GetMTGS().WaitGS(false, false, false); GetMTGS().ResetGS(true); + } else + { GetMTGS().WaitForClose(); + } USBshutdown(); SPU2shutdown();