Skip to content

Commit f243bf9

Browse files
committed
tr_image: detect $name as builtin or generated image
1 parent f743d49 commit f243bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/tr_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ image_t *R_FindImageFile( const char *imageName, imageParams_t &imageParams )
18211821
// Built-in images can't be reloaded with different parameters, so return them as-is.
18221822
// 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 ] == '_' && !strchr( image->name, '/' ) )
1824+
if ( ( image->name[ 0 ] == '$' || image->name[ 0 ] == '_' ) && !strchr( image->name, '/' ) )
18251825
{
18261826
return image;
18271827
}

0 commit comments

Comments
 (0)