mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
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:
parent
4b964ab7b1
commit
30cb1b6f12
1 changed files with 4 additions and 5 deletions
|
@ -306,11 +306,6 @@ static int VID_SetMode (int modenum)
|
||||||
|
|
||||||
vid.recalc_refdef = 1;
|
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
|
// no pending changes
|
||||||
vid_changed = false;
|
vid_changed = false;
|
||||||
|
|
||||||
|
@ -395,6 +390,10 @@ static void VID_Restart (void)
|
||||||
//
|
//
|
||||||
VID_SetMode (vid_default);
|
VID_SetMode (vid_default);
|
||||||
|
|
||||||
|
GL_Init ();
|
||||||
|
TexMgr_ReloadImages ();
|
||||||
|
GL_SetupState ();
|
||||||
|
|
||||||
vid_canalttab = true;
|
vid_canalttab = true;
|
||||||
|
|
||||||
//warpimages needs to be recalculated
|
//warpimages needs to be recalculated
|
||||||
|
|
Loading…
Reference in a new issue