From: havoc Date: Wed, 24 Aug 2005 18:51:16 +0000 (+0000) Subject: fix a stupid bug in shader parsing (it was ignoring passes when not transparent) X-Git-Tag: xonotic-v0.1.0preview~4615 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6bcfb249318cb0a493d669b5d97d10e3b64b7644;p=xonotic%2Fdarkplaces.git fix a stupid bug in shader parsing (it was ignoring passes when not transparent) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5655 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 79574254..253edee9 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3710,9 +3710,9 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) Con_Printf(" %s", parameter[j]); Con_Print("\n"); } - if (passnumber == 0 && numparameters >= 1 && (flags & Q3SURFACEPARM_TRANS)) + if (passnumber == 0 && numparameters >= 1) { - if (!strcasecmp(parameter[0], "blendfunc")) + if (!strcasecmp(parameter[0], "blendfunc") && (flags & Q3SURFACEPARM_TRANS)) { if (numparameters == 2 && !strcasecmp(parameter[1], "add")) flags2 |= Q3TEXTUREFLAG_ADDITIVE;