]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
clear some variables when VID_Shutdown is called (the other 3 vid
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Mar 2008 06:45:32 +0000 (06:45 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 1 Mar 2008 06:45:32 +0000 (06:45 +0000)
modules already did this)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8168 d7cf8633-e32d-0410-b094-e92efae38249

vid_sdl.c

index 3654b4489c1e6d23cdc10826d5bc9a7318eca49b..ebea6867b6bbfbb4f2e9f05a09095607f4f84bdc 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -787,6 +787,11 @@ void VID_Shutdown (void)
 
        IN_Activate(false);
        SDL_QuitSubSystem(SDL_INIT_VIDEO);
+
+       gl_driver[0] = 0;
+       gl_extensions = "";
+       gl_platform = "";
+       gl_platformextensions = "";
 }
 
 int VID_SetGamma (unsigned short *ramps, int rampsize)