mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-18 20:14:23 +01:00
VMManager: Ensure MTGS is finished before resetting
This commit is contained in:
1 parent
1a979a8498
commit
a2c140c87f
1 file changed
+5
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user