Commit cbf0d89
committed
fix(macOS): destroy EGL context via EGL, not SDL_GL_DeleteContext (shutdown crash)
On macOS the Zink/KosmicKrisp bootstrap stores the EGL context in
glContext (glContext = (SDL_GLContext)g_eglContext). DestroyWindowAndContext
then passed it to SDL_GL_DeleteContext, which treats an EGL context as an
SDL/native GL context and crashes on quit (SIGSEGV in SDL
DispatchedDeleteContext -> CGlobalRendering::~CGlobalRendering). Call the
existing DestroyEGLContext() on __APPLE__ instead. The game rendered fine;
it only crashed during shutdown.1 parent 59a9ded commit cbf0d89
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
995 | 1003 | | |
996 | 1004 | | |
997 | 1005 | | |
| 1006 | + | |
998 | 1007 | | |
999 | 1008 | | |
1000 | 1009 | | |
| |||
0 commit comments