]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_models.c
fixed fogging on models and opaque liquids (teleport/lava)
[xonotic/darkplaces.git] / gl_models.c
index 638696898c2d617d931d536164fe4a56a2ff2519..55eadf2bb0bf69e49aeb65489184f90b6293769d 100644 (file)
@@ -440,7 +440,7 @@ void R_DrawQ1Q2AliasModel (void)
        else
                R_DrawModelMesh(0, NULL, 1 - fog, 1 - fog, 1 - fog);
 
-       if (fog && aliasmeshinfo.blendfunc2 != GL_ONE)
+       if (fog && !(currentrenderentity->effects & EF_ADDITIVE))
        {
                aliasmeshinfo.tex[0] = R_GetTexture(skinframe->fog);
                aliasmeshinfo.blendfunc1 = GL_SRC_ALPHA;