mtgs: fix pesky assert on gs init

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2021-05-14 17:54:35 +02:00 committed by Kojin
parent 25af4de320
commit 06da3a1359
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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();