]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
VID_Shutdown(): Delete OpenGL context
authorbones_was_here <bones_was_here@xonotic.au>
Tue, 3 Oct 2023 09:31:22 +0000 (19:31 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Sat, 28 Oct 2023 08:21:53 +0000 (18:21 +1000)
Destroying the window doesn't do this so for a cleaner vid_restart we need to.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
vid_sdl.c

index 7cee4def134bf482dda2adbe4e1184bf02721a74..065c4607b011026a7ed4f4a4277dd06d319c3f69 100644 (file)
--- 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;