engine: don't call SCR_VidInit too soon

This commit is contained in:
Alibek Omarov 2019-11-28 17:43:06 +03:00
parent ecd675926a
commit d0010cf9cb
1 changed files with 3 additions and 0 deletions

View File

@ -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 ));