From: havoc Date: Wed, 12 Mar 2003 15:38:46 +0000 (+0000) Subject: fix for 16bit textures looking awful (bug in the alpha check for 8bit) X-Git-Tag: xonotic-v0.1.0preview~6726 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9ed3f50e7c5d1db79d6258145329f31619617e6a;p=xonotic%2Fdarkplaces.git fix for 16bit textures looking awful (bug in the alpha check for 8bit) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2839 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index a05ab290..65794a0f 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -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;