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,7 +322,8 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
CD.Dispose();
Disposed = true;
DeactivateGL();
CoreComm.ReleaseGLContext(glContext);
if (glContext != null)
CoreComm.ReleaseGLContext(glContext);
}
}