dont crash when shutting down a saturn core started in non-gl mode

This commit is contained in:
zeromus 2016-03-13 19:50:25 -05:00
parent a6c3561db0
commit 68f16a3a79
1 changed files with 2 additions and 1 deletions

View File

@ -322,6 +322,7 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
CD.Dispose(); CD.Dispose();
Disposed = true; Disposed = true;
DeactivateGL(); DeactivateGL();
if (glContext != null)
CoreComm.ReleaseGLContext(glContext); CoreComm.ReleaseGLContext(glContext);
} }
} }