From: divverent Date: Tue, 24 Jan 2012 21:47:10 +0000 (+0000) Subject: remove PRECACHE_PIC_NOCLAMP because it currently has no chance to work X-Git-Tag: xonotic-v0.6.0~49 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=27ded891e53f12b3b679d25d42ca3bf1bebf0337;p=xonotic%2Fdarkplaces.git remove PRECACHE_PIC_NOCLAMP because it currently has no chance to work git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11658 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d101875d68b898ea13f69e0bede0e1b24f9856f0 --- diff --git a/gl_draw.c b/gl_draw.c index 127a0b37..589140e2 100644 --- a/gl_draw.c +++ b/gl_draw.c @@ -343,7 +343,7 @@ cachepic_t *Draw_CachePic_Flags(const char *path, unsigned int cachepicflags) // if it was created (or replaced) by Draw_NewPic, just return it if(pic->flags & CACHEPICFLAG_NEWPIC) return pic; - if (!((pic->texflags ^ texflags) & ~(TEXF_COMPRESS))) // ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag + if (!((pic->texflags ^ texflags) & ~(TEXF_COMPRESS | TEXF_MIPMAP))) // ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag, and ignore TEXF_MIPMAP because QC specifies that { if(!(cachepicflags & CACHEPICFLAG_NOTPERSISTENT)) {