From: havoc Date: Fri, 30 Aug 2002 09:33:04 +0000 (+0000) Subject: fixed models getting dark in the distance when fogged bug (thanks to Elric for report... X-Git-Tag: RELEASE_0_2_0_RC1~290 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1379b5eec769986c83c7de2ba63fd581de7ea147;p=xonotic%2Fdarkplaces.git 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 --- 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);