Skip to content

Commit 0fbfbd1

Browse files
committed
tr_image: add comment about image *name and $name
1 parent 1d93ff3 commit 0fbfbd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/renderer/tr_image.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,9 @@ image_t *R_FindImageFile( const char *imageName, imageParams_t &imageParams )
18231823
// Detect built-in images by naming convention.
18241824
switch ( image->name[ 0 ] )
18251825
{
1826+
// Private images not meant to be reused (like framebuffers, UI-generated images…).
18261827
case '*':
1828+
// Public images reusable by the user, like $white that can be used in .shader files.
18271829
case '$':
18281830
return image;
18291831
break;

0 commit comments

Comments
 (0)