]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
don't compare texflags in Draw_CachePic_Flags simply because usage of pics doesn...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Jan 2012 21:45:05 +0000 (21:45 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 24 Jan 2012 21:45:05 +0000 (21:45 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11656 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index 127a0b377c8c30fc299255750095d971a8c78cae..4cea94e9741b964e917cc344ef187c8fb4c22430 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -343,7 +343,8 @@ 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))) // ignore TEXF_COMPRESS when comparing, because fallback pics remove the flag
+                       // better don't compare texflags at all, because draw operations have no way to specify the texflags
                        {
                                if(!(cachepicflags & CACHEPICFLAG_NOTPERSISTENT))
                                {