Browse Source

engine: ref: remove redutant continue, return false in case of failed renderer initialization

pull/2/head
Alibek Omarov 5 years ago
parent
commit
eff814b148
  1. 2
      engine/client/ref_common.c
  2. 10
      waf

2
engine/client/ref_common.c

@ -617,7 +617,6 @@ void R_CollectRendererNames( void )
ref.numRenderers++; ref.numRenderers++;
COM_FreeLibrary( dll ); COM_FreeLibrary( dll );
continue;
} }
} }
@ -673,6 +672,7 @@ qboolean R_Init( void )
if( !success ) if( !success )
{ {
Host_Error( "Can't initialize any renderer. Check your video drivers!" ); Host_Error( "Can't initialize any renderer. Check your video drivers!" );
return false;
} }
SCR_Init(); SCR_Init();

10
waf vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save