diff -r 78ce93fb46e5 -r 52611a99e574 src/glcontext.c --- a/src/glcontext.c Wed Apr 23 23:43:45 2025 +0200 +++ b/src/glcontext.c Wed Apr 23 23:59:34 2025 +0200 @@ -138,6 +138,8 @@ return false; } + ctx->mpool = cxMempoolCreateSimple(128); + return true; } else { asc_error("glewInit failed: %s", glewGetErrorString(err)); @@ -150,6 +152,8 @@ if (ctx->glctx == NULL) return; SDL_GL_MakeCurrent(ctx->window, ctx->glctx); + cxMempoolFree(ctx->mpool); + ctx->mpool = NULL; asc_texture_destroy_predefined(ctx); asc_shader_destroy_predefined(ctx); asc_primitives_destroy(ctx);