VMManager: Ensure MTGS is finished before resetting

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-09-17 17:51:14 +01:00
1 parent 1a979a8498
commit a2c140c87f
1 file changed
+5
+5
View File
@@ -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();