From: havoc Date: Sun, 20 Dec 2009 12:19:15 +0000 (+0000) Subject: fix fog mask scrolling on q1bsp sky X-Git-Tag: xonotic-v0.1.0preview~1043 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3068d4c52b1625a0485411dcc394feb90f36507c;p=xonotic%2Fdarkplaces.git fix fog mask scrolling on q1bsp sky git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9604 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index f2fbc511..16c419aa 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6232,7 +6232,7 @@ texture_t *R_GetCurrentTexture(texture_t *t) // were darkened by fog already, and we should not add fog color // (because the background was not darkened, there is no fog color // that was lost behind it). - R_Texture_AddLayer(t, false, GL_SRC_ALPHA, (t->currentmaterialflags & MATERIALFLAG_BLENDED) ? GL_ONE : GL_ONE_MINUS_SRC_ALPHA, TEXTURELAYERTYPE_FOG, t->currentskinframe->fog, &identitymatrix, r_refdef.fogcolor[0] / r_refdef.view.colorscale, r_refdef.fogcolor[1] / r_refdef.view.colorscale, r_refdef.fogcolor[2] / r_refdef.view.colorscale, t->lightmapcolor[3]); + R_Texture_AddLayer(t, false, GL_SRC_ALPHA, (t->currentmaterialflags & MATERIALFLAG_BLENDED) ? GL_ONE : GL_ONE_MINUS_SRC_ALPHA, TEXTURELAYERTYPE_FOG, t->currentskinframe->fog, &t->currenttexmatrix, r_refdef.fogcolor[0] / r_refdef.view.colorscale, r_refdef.fogcolor[1] / r_refdef.view.colorscale, r_refdef.fogcolor[2] / r_refdef.view.colorscale, t->lightmapcolor[3]); } }