mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: ref: remove redutant continue, return false in case of failed renderer initialization
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user