From 1379b5eec769986c83c7de2ba63fd581de7ea147 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 30 Aug 2002 09:33:04 +0000 Subject: [PATCH] fixed models getting dark in the distance when fogged bug (thanks to Elric for reporting this, trivial fix, was a silly mistake on my part) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2314 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_models.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_models.c b/gl_models.c index 6f90d87b..7edf394e 100644 --- a/gl_models.c +++ b/gl_models.c @@ -468,7 +468,7 @@ void R_DrawQ1Q2AliasModelCallback (const void *calldata1, int calldata2) m.numverts = model->numverts; m.matrix = ent->matrix; m.tex[0] = R_GetTexture(skinframe->fog); - if (m.tex[0] && R_Mesh_Draw_GetBuffer(&m, true)) + if (R_Mesh_Draw_GetBuffer(&m, true)) { c_alias_polys += m.numtriangles; R_FillColors(m.color, m.numverts, fogcolor[0] * fog * m.colorscale, fogcolor[1] * fog * m.colorscale, fogcolor[2] * fog * m.colorscale, ent->alpha); -- 2.39.2