mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-11 02:00:56 +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: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@784 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
a8acf5c2cf
commit
ab0ee719ef
1 changed files with 4 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue