]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gl_texturemode should not affect TEXF_FORCENEAREST and TEXF_FORCELINEAR textures
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Feb 2004 05:17:08 +0000 (05:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Feb 2004 05:17:08 +0000 (05:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3870 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 4c9b11ac4f5a33b230ba0a45eb3d731a3e1b1eb7..f3e8a1b24725f79354ef47fbb8096cea351b55e4 100644 (file)
@@ -365,7 +365,7 @@ static void GL_TextureMode_f (void)
                for (image = pool->imagechain;image;image = image->imagechain)
                {
                        // only update already uploaded images
-                       if (!(image->flags & GLTEXF_UPLOAD))
+                       if (!(image->flags & GLTEXF_UPLOAD) && !(image->flags & (TEXF_FORCENEAREST | TEXF_FORCELINEAR)))
                        {
                                qglGetIntegerv(gltexturetypebindingenums[image->texturetype], &oldbindtexnum);
                                qglBindTexture(gltexturetypeenums[image->texturetype], image->texnum);