From 06da3a135947c34879f411e39e55ca67f10f378a Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Fri, 14 May 2021 17:54:35 +0200 Subject: [PATCH] mtgs: fix pesky assert on gs init --- pcsx2/MTGS.cpp | 2 +- pcsx2/gui/GlobalCommands.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/MTGS.cpp b/pcsx2/MTGS.cpp index 75b85ce00c..1c1befa436 100644 --- a/pcsx2/MTGS.cpp +++ b/pcsx2/MTGS.cpp @@ -211,7 +211,7 @@ void SysMtgsThread::OpenGS() GSsetBaseMem(RingBuffer.Regs); GSirqCallback(dummyIrqCallback); - pxAssert(GSopen2((void**)pDsp, 1 | (renderswitch ? 4 : 0)) != 0); + pxAssertMsg((GSopen2((void**)pDsp, 1 | (renderswitch ? 4 : 0)) == 0), "GS failed to open!"); GSsetVsync(EmuConfig.GS.GetVsync()); diff --git a/pcsx2/gui/GlobalCommands.cpp b/pcsx2/gui/GlobalCommands.cpp index 9b65e28ad6..c74955ffa2 100644 --- a/pcsx2/gui/GlobalCommands.cpp +++ b/pcsx2/gui/GlobalCommands.cpp @@ -419,7 +419,7 @@ namespace Implementations GSfreeze(FREEZE_LOAD, &fP); } renderswitch = !renderswitch; - GSopen2((void**)pDsp, (renderswitch << 24)); + GSopen2((void**)pDsp, (renderswitch ? 4 : 0)); renderswitch_delay = -1; delete[] fP.data; paused_core.AllowResume();