fixed models getting dark in the distance when fogged bug (thanks to Elric for report...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Aug 2002 09:33:04 +0000 (09:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Aug 2002 09:33:04 +0000 (09:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2314 d7cf8633-e32d-0410-b094-e92efae38249

gl_models.c

index 6f90d87..7edf394 100644 (file)
@@ -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);