engine: ref: fix spamming in console when getting human readable renderer names

This commit is contained in:
Alibek Omarov 2019-10-11 05:11:45 +03:00
parent 1e7abdc144
commit 6d8026cd81
1 changed files with 2 additions and 2 deletions

View File

@ -508,13 +508,11 @@ static void R_GetRendererName( char *dest, size_t size, const char *opt )
Q_snprintf( dest, size, "%sref_%s.%s",
OS_LIB_PREFIX, opt, OS_LIB_EXT );
#endif
Con_Printf( "Loading renderer by short name: %s\n", opt );
}
else
{
// full path
Q_strcpy( dest, opt );
Con_Printf( "Loading renderer: %s\n", opt );
}
}
@ -524,6 +522,8 @@ static qboolean R_LoadRenderer( const char *refopt )
R_GetRendererName( refdll, sizeof( refdll ), refopt );
Con_Printf( "Loading renderer: %s -> %s\n", refopt, refdll );
if( !R_LoadProgs( refdll ))
{
R_Shutdown();