dont crash when shutting down a saturn core started in non-gl mode
This commit is contained in:
parent
a6c3561db0
commit
68f16a3a79
|
@ -322,7 +322,8 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn
|
|||
CD.Dispose();
|
||||
Disposed = true;
|
||||
DeactivateGL();
|
||||
CoreComm.ReleaseGLContext(glContext);
|
||||
if (glContext != null)
|
||||
CoreComm.ReleaseGLContext(glContext);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue