mirror of https://github.com/PCSX2/pcsx2.git
gs: ensure gsclose is sent from the main mtgs thread and not sysexecutor
This commit is contained in:
parent
70a6c59126
commit
0009ff8853
|
@ -594,13 +594,13 @@ void SysMtgsThread::CloseGS()
|
|||
{
|
||||
if (!m_Opened || GSDump::isRunning)
|
||||
return;
|
||||
GSclose();
|
||||
m_Opened = false;
|
||||
Suspend();
|
||||
}
|
||||
|
||||
void SysMtgsThread::OnSuspendInThread()
|
||||
{
|
||||
GSclose();
|
||||
GetSysExecutorThread().PostEvent(new SysExecEvent_InvokeMtgsThreadMethod(&SysMtgsThread::CloseGS));
|
||||
_parent::OnSuspendInThread();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue