fixed r_picmip incorrectly applying to external lightmap atlases

This commit is contained in:
myT 2020-01-07 22:54:48 +01:00
parent 7d526ba6fc
commit 9366ee5130
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ static void Upload32( image_t* image, unsigned int* data )
// atlases loaded from images on disk
if ( Q_stristr( image->name, "maps/" ) == image->name &&
Q_stristr( image->name + 5, "/lm_" ) != NULL ) {
image->flags |= IMG_NOPICMIP;
image->flags |= IMG_NOMIPMAP;
image->flags |= IMG_NOAF;
image->flags |= IMG_EXTLMATLAS;