From e685876f8e234d1a353bfdbc89a0b0e022fe520c Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 19 Aug 2010 05:35:16 +0000 Subject: [PATCH] Draw_CachePic_Flags: ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10396 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_draw.c b/gl_draw.c index 3161e7fa..7fdde68f 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -331,7 +331,7 @@ cachepic_t *Draw_CachePic_Flags(const char *path, unsigned int cachepicflags) hashkey = ((crc >> 8) ^ crc) % CACHEPICHASHSIZE; for (pic = cachepichash[hashkey];pic;pic = pic->chain) if (!strcmp (path, pic->name)) - if(pic->texflags == texflags) + if(!((pic->texflags ^ texflags) & ~(TEXF_COMPRESS))) // ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag { if(!(cachepicflags & CACHEPICFLAG_NOTPERSISTENT)) pic->autoload = false; // persist it -- 2.39.2