From: bones_was_here Date: Tue, 3 Oct 2023 09:31:22 +0000 (+1000) Subject: VID_Shutdown(): Delete OpenGL context X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=72d993ebe1069e0813747379d0878d5c335f6b08;p=xonotic%2Fdarkplaces.git 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 --- 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;