From 30cb1b6f12fb9e3fc2a9e803891077f40d2ebbb5 Mon Sep 17 00:00:00 2001 From: sezero Date: Wed, 7 Nov 2012 12:27:39 +0000 Subject: [PATCH] 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 --- Quake/gl_vidsdl.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Quake/gl_vidsdl.c b/Quake/gl_vidsdl.c index 49dca7eb..00639ce5 100644 --- a/Quake/gl_vidsdl.c +++ b/Quake/gl_vidsdl.c @@ -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