Fix bug in (no)lerp logic in GL1

refs #805
This commit is contained in:
Daniel Gibson 2022-03-26 23:40:05 +01:00
parent b5a0050e31
commit f7386eb296
1 changed files with 4 additions and 4 deletions

View File

@ -864,15 +864,15 @@ R_LoadPic(char *name, byte *pic, int width, int realwidth,
qboolean nolerp = false;
if (r_2D_unfiltered->value && type == it_pic)
{
nolerp = true;
}
else if(gl_nolerp_list != NULL && gl_nolerp_list->string != NULL)
{
// if r_2D_unfiltered is true(ish), nolerp should usually be true,
// *unless* the texture is on the r_lerp_list
nolerp = (r_lerp_list->string == NULL) || (strstr(r_lerp_list->string, name) == NULL);
}
else if (gl_nolerp_list != NULL && gl_nolerp_list->string != NULL)
{
nolerp = strstr(gl_nolerp_list->string, name) != NULL;
}
/* find a free image_t */
for (i = 0, image = gltextures; i < numgltextures; i++, image++)