move GL_Init(), TexMgr_ReloadImages() and GL_SetupState() calls from

VID_SetMode() to VID_Restart() so they aren't called twice at startup.

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@784 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2012-11-07 12:27:39 +00:00
parent 4b964ab7b1
commit 30cb1b6f12
1 changed files with 4 additions and 5 deletions

View File

@ -306,11 +306,6 @@ static int VID_SetMode (int modenum)
vid.recalc_refdef = 1;
// with SDL, this needs to be done every time the render context is recreated, so I moved it here
GL_Init ();
TexMgr_ReloadImages ();
GL_SetupState ();
// no pending changes
vid_changed = false;
@ -395,6 +390,10 @@ static void VID_Restart (void)
//
VID_SetMode (vid_default);
GL_Init ();
TexMgr_ReloadImages ();
GL_SetupState ();
vid_canalttab = true;
//warpimages needs to be recalculated