]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
fix view blends so they are alpha, not additive
[xonotic/darkplaces.git] / gl_rmain.c
index c834478f02d32aa6a0aba99b9270fc07f0b110d3..9b11c9120ec62e629107253aad38bb9f6a0fdf87 100644 (file)
@@ -509,16 +509,13 @@ static void R_BlendView(void)
        rmeshinfo_t m;
        float tvxyz[3][4], r;
 
-       if (!r_render.integer)
-               return;
-
        if (r_refdef.viewblend[3] < 0.01f)
                return;
 
        memset(&m, 0, sizeof(m));
        m.transparent = false;
        m.blendfunc1 = GL_SRC_ALPHA;
-       m.blendfunc2 = GL_ONE;
+       m.blendfunc2 = GL_ONE_MINUS_SRC_ALPHA;
        m.depthdisable = true; // magic
        m.numtriangles = 1;
        m.numverts = 3;