From 72d993ebe1069e0813747379d0878d5c335f6b08 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 3 Oct 2023 19:31:22 +1000 Subject: [PATCH] VID_Shutdown(): Delete OpenGL context Destroying the window doesn't do this so for a cleaner vid_restart we need to. Signed-off-by: bones_was_here --- vid_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vid_sdl.c b/vid_sdl.c index 7cee4def..065c4607 100644 --- a/vid_sdl.c +++ b/vid_sdl.c @@ -1659,6 +1659,8 @@ void VID_Shutdown (void) VID_EnableJoystick(false); VID_SetMouse(false, false); + SDL_GL_DeleteContext(context); + context = NULL; SDL_DestroyWindow(window); window = NULL; -- 2.39.2