]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix view blends so they are alpha, not additive
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Jul 2002 01:02:11 +0000 (01:02 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 20 Jul 2002 01:02:11 +0000 (01:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2061 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index c6e6ce2e7222df2c40d5de7ea4ffba5999907478..9b11c9120ec62e629107253aad38bb9f6a0fdf87 100644 (file)
@@ -515,7 +515,7 @@ static void R_BlendView(void)
        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;