OpenGL2: Fix fog color.

This commit is contained in:
SmileTheory 2016-10-12 23:17:19 -07:00
parent ad819edcc4
commit 863adfcfc2

View file

@ -2556,9 +2556,9 @@ static void R_LoadFogs( lump_t *l, lump_t *brushesLump, lump_t *sidesLump ) {
out->parms = shader->fogParms;
out->colorInt = ColorBytes4 ( shader->fogParms.color[0] * tr.identityLight,
shader->fogParms.color[1] * tr.identityLight,
shader->fogParms.color[2] * tr.identityLight, 1.0 );
out->colorInt = ColorBytes4 ( shader->fogParms.color[0],
shader->fogParms.color[1],
shader->fogParms.color[2], 1.0 );
d = shader->fogParms.depthForOpaque < 1 ? 1 : shader->fogParms.depthForOpaque;
out->tcScale = 1.0f / ( d * 8 );