dont crash when shutting down a saturn core started in non-gl mode
This commit is contained in:
parent
a6c3561db0
commit
68f16a3a79
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue