]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_poly.c
Fix for HalfLife texture transparency and renderamt (originally misunderstood).
[xonotic/darkplaces.git] / gl_poly.c
index 78b6f5c85ed16139e5184cd29bd1e7d2b6254e83..08af798dc1bee321910c9be667e8b65b70c9d673 100644 (file)
--- a/gl_poly.c
+++ b/gl_poly.c
@@ -470,6 +470,7 @@ void wallpolyrender()
        if (!gl_mtexable)
                gl_multitexture.value = 0;
        glDisable(GL_BLEND);
+       glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
        glShadeModel(GL_FLAT);
        // make sure zbuffer is enabled
        glEnable(GL_DEPTH_TEST);