From 8e52dc1e22b8adba0b05352e2f7a6bb03e36f8ea Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Wed, 16 Jun 2021 14:36:11 +0200 Subject: [PATCH] gs: ensure closegspanel is closed after suspend, in sysexecutor --- pcsx2/MTGS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/MTGS.cpp b/pcsx2/MTGS.cpp index 49955e1a08..ece921aaa6 100644 --- a/pcsx2/MTGS.cpp +++ b/pcsx2/MTGS.cpp @@ -595,13 +595,13 @@ void SysMtgsThread::CloseGS() if (!m_Opened || GSDump::isRunning) return; m_Opened = false; - Suspend(); + Suspend(); + sApp.CloseGsPanel(); } void SysMtgsThread::OnSuspendInThread() { GSclose(); - sApp.CloseGsPanel(); GetSysExecutorThread().PostEvent(new SysExecEvent_InvokeMtgsThreadMethod(&SysMtgsThread::CloseGS)); _parent::OnSuspendInThread(); }