--- a/src/glcontext.c Tue Aug 05 16:53:25 2025 +0200 +++ b/src/glcontext.c Tue Aug 05 20:00:24 2025 +0200 @@ -109,7 +109,7 @@ return true; } else { asc_error("glewInit failed: %s", glewGetErrorString(err)); - SDL_GL_DeleteContext(ctx->glctx); + SDL_GL_DestroyContext(ctx->glctx); return false; } } @@ -122,7 +122,7 @@ cxListFree(ctx->cleanup_funcs); // destroy the GL context and the window - SDL_GL_DeleteContext(ctx->glctx); + SDL_GL_DestroyContext(ctx->glctx); ctx->glctx = NULL; }