src/glcontext.c

changeset 253
6ab35fcb8676
parent 208
658bccb1bf73
--- 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;
 }
 

mercurial