]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
fix for 16bit textures looking awful (bug in the alpha check for 8bit)
[xonotic/darkplaces.git] / 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;