From 6bcfb249318cb0a493d669b5d97d10e3b64b7644 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 24 Aug 2005 18:51:16 +0000 Subject: [PATCH] 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 --- model_brush.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2