From d0010cf9cb5290e774cfb5262cc637e26491f24c Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 28 Nov 2019 17:43:06 +0300 Subject: [PATCH] engine: don't call SCR_VidInit too soon --- engine/client/cl_scrn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/cl_scrn.c b/engine/client/cl_scrn.c index 73e54038..b5c5468e 100644 --- a/engine/client/cl_scrn.c +++ b/engine/client/cl_scrn.c @@ -727,6 +727,9 @@ SCR_VidInit */ void SCR_VidInit( void ) { + if( !ref.initialized ) // don't call VidInit too soon + return; + memset( &clgame.ds, 0, sizeof( clgame.ds )); // reset a draw state memset( &gameui.ds, 0, sizeof( gameui.ds )); // reset a draw state memset( &clgame.centerPrint, 0, sizeof( clgame.centerPrint ));