From d5a5bb07f2d38ac68f49482b6d76ab9cc21a1155 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 27 Dec 2005 02:43:33 +0000 Subject: [PATCH] fix sprite transparency bug introduced by the palette changes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5866 d7cf8633-e32d-0410-b094-e92efae38249 --- model_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_shared.c b/model_shared.c index 91d2063b..0565f206 100644 --- a/model_shared.c +++ b/model_shared.c @@ -1004,7 +1004,7 @@ int Mod_LoadSkinFrame_Internal(skinframe_t *skinframe, const char *basename, int Mem_Free(temp1); } // use either a custom palette, or the quake palette - skinframe->base = skinframe->merged = GL_TextureForSkinLayer(skindata, width, height, va("%s_merged", basename), palette ? palette : (loadglowtexture ? palette_nofullbrights : palette_complete), textureflags); // all + skinframe->base = skinframe->merged = GL_TextureForSkinLayer(skindata, width, height, va("%s_merged", basename), palette ? palette : (loadglowtexture ? palette_nofullbrights : ((textureflags & TEXF_ALPHA) ? palette_transparent : palette_complete)), textureflags); // all if (!palette && loadglowtexture) skinframe->glow = GL_TextureForSkinLayer(skindata, width, height, va("%s_glow", basename), palette_onlyfullbrights, textureflags); // glow if (!palette && loadpantsandshirt) -- 2.39.2