Skip to content

Commit c6a9493

Browse files
committed
tr_image: no need to detect _name builtin image, there is none remaining
1 parent 25f41f9 commit c6a9493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/engine/renderer/tr_image.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,9 +1819,9 @@ image_t *R_FindImageFile( const char *imageName, imageParams_t &imageParams )
18191819
}
18201820

18211821
// Built-in images can't be reloaded with different parameters, so return them as-is.
1822-
// For most of the usable ones e.g. _white, parameters wouldn't make a difference anyway.
1822+
// For most of the usable ones e.g. $white, parameters wouldn't make a difference anyway.
18231823
// HACK: detect built-in images by naming convention, though nothing stops users from using such names
1824-
if ( ( image->name[ 0 ] == '$' || image->name[ 0 ] == '_' ) && !strchr( image->name, '/' ) )
1824+
if ( image->name[ 0 ] == '$' && !strchr( image->name, '/' ) )
18251825
{
18261826
return image;
18271827
}

0 commit comments

Comments
 (0)