--- a/src/glcontext.c Sun Nov 30 16:52:33 2025 +0100 +++ b/src/glcontext.c Wed Dec 31 17:50:20 2025 +0100 @@ -108,12 +108,12 @@ glDebugMessageCallback(asc_gl_debug_callback, NULL); // Create the cleanup functions array - ctx->cleanup_funcs = cxArrayListCreateSimple(sizeof(struct asc_gl_context_cleanup_data), 8); - cxDefineDestructor(ctx->cleanup_funcs, asc_gl_context_cleanup); + ctx->cleanup_funcs = cxArrayListCreate(NULL, sizeof(struct asc_gl_context_cleanup_data), 8); + cxSetDestructor(ctx->cleanup_funcs, asc_gl_context_cleanup); // Create the shaders array - ctx->shaders = cxArrayListCreateSimple(CX_STORE_POINTERS, 32); - cxDefineDestructor(ctx->shaders, asc_shader_free); + ctx->shaders = cxArrayListCreate(NULL, CX_STORE_POINTERS, 32); + cxSetDestructor(ctx->shaders, asc_shader_free); ctx->active_program = 0; return true;