]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_shared.c
remove qwgl externs, as they are not used outside vid_wgl.c
[xonotic/darkplaces.git] / vid_shared.c
index a2dfc9a6ca054b3c796caa2503acffb23fd2fa54..849313b8f32ea962a2e22ec01081a696b16203ba 100644 (file)
@@ -1033,7 +1033,8 @@ void VID_Restart_f(void)
        Con_Printf("VID_Restart: changing from %s %dx%dx%dbpp, to %s %dx%dx%dbpp.\n",
                current_vid_fullscreen ? "fullscreen" : "window", current_vid_width, current_vid_height, current_vid_bitsperpixel,
                vid_fullscreen.integer ? "fullscreen" : "window", vid_width.integer, vid_height.integer, vid_bitsperpixel.integer);
-       VID_Close();
+       VID_CloseSystems();
+       VID_Shutdown();
        if (!VID_Mode(vid_fullscreen.integer, vid_width.integer, vid_height.integer, vid_bitsperpixel.integer))
        {
                Con_Print("Video mode change failed\n");
@@ -1043,7 +1044,8 @@ void VID_Restart_f(void)
        VID_OpenSystems();
 }
 
-void VID_Open(void)
+// this is only called once by Host_StartVideo
+void VID_Start(void)
 {
        int i, width, height, success;
        if (vid_commandlinecheck)
@@ -1094,9 +1096,3 @@ void VID_Open(void)
        VID_OpenSystems();
 }
 
-void VID_Close(void)
-{
-       VID_CloseSystems();
-       VID_Shutdown();
-}
-