Browse Source

engine: don't call SCR_VidInit too soon

pull/2/head
Alibek Omarov 5 years ago
parent
commit
d0010cf9cb
  1. 3
      engine/client/cl_scrn.c

3
engine/client/cl_scrn.c

@ -727,6 +727,9 @@ SCR_VidInit
*/ */
void SCR_VidInit( void ) 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( &clgame.ds, 0, sizeof( clgame.ds )); // reset a draw state
memset( &gameui.ds, 0, sizeof( gameui.ds )); // reset a draw state memset( &gameui.ds, 0, sizeof( gameui.ds )); // reset a draw state
memset( &clgame.centerPrint, 0, sizeof( clgame.centerPrint )); memset( &clgame.centerPrint, 0, sizeof( clgame.centerPrint ));

Loading…
Cancel
Save