]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix for 16bit textures looking awful (bug in the alpha check for 8bit)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Mar 2003 15:38:46 +0000 (15:38 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 12 Mar 2003 15:38:46 +0000 (15:38 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2839 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index a05ab290a5bd67fed6f7b136faec492b1fac9154..65794a0f067d41250390cc75f82ff3e9083e9fd3 100644 (file)
@@ -997,7 +997,7 @@ static rtexture_t *R_SetupTexture(rtexturepool_t *rtexturepool, const char *iden
                        {
                                for (i = 0;i < size;i++)
                                {
-                                       if (((qbyte *)&palette[data[i]])[3] == 255)
+                                       if (((qbyte *)&palette[data[i]])[3] < 255)
                                        {
                                                flags |= TEXF_ALPHA;
                                                break;