From: havoc Date: Tue, 18 Jul 2006 22:27:06 +0000 (+0000) Subject: don't crash if r_restart is used in startup scripts before anything starts the video... X-Git-Tag: xonotic-v0.1.0preview~3866 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=ffb1b1f82f09aca08e35d0db3d56a35c30b83980;p=xonotic%2Fdarkplaces.git don't crash if r_restart is used in startup scripts before anything starts the video system (fixed this by starting video system in r_restart if necessary) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6514 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_modules.c b/r_modules.c index b1909685..df260db6 100644 --- a/r_modules.c +++ b/r_modules.c @@ -76,6 +76,7 @@ void R_Modules_Shutdown(void) void R_Modules_Restart(void) { + Host_StartVideo(); Con_Print("restarting renderer\n"); R_Modules_Shutdown(); R_Modules_Start();