diff --git a/src/client/refresh/gl1/gl1_sdl.c b/src/client/refresh/gl1/gl1_sdl.c index 7dc99b6b..987c28c1 100644 --- a/src/client/refresh/gl1/gl1_sdl.c +++ b/src/client/refresh/gl1/gl1_sdl.c @@ -366,7 +366,11 @@ RI_ShutdownContext(void) { if(context) { +#ifdef USE_SDL3 SDL_GL_DestroyContext(context); +#else + SDL_GL_DeleteContext(context); +#endif context = NULL; } } diff --git a/src/client/refresh/gl3/gl3_sdl.c b/src/client/refresh/gl3/gl3_sdl.c index ace1fbbd..1b66abe6 100644 --- a/src/client/refresh/gl3/gl3_sdl.c +++ b/src/client/refresh/gl3/gl3_sdl.c @@ -478,7 +478,11 @@ void GL3_ShutdownContext() { if(context) { +#ifdef USE_SDL3 SDL_GL_DestroyContext(context); +#else + SDL_GL_DeleteContext(context); +#endif context = NULL; } }