]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rmain.c
slight simplification/optimization of an if statement (no change in
[xonotic/darkplaces.git] / gl_rmain.c
index 2883c1be92011cd594a6613395d2ef93cfd6ef7b..c0bc61c3cb517fa47df34f7948a4a6e5aac1abe2 100644 (file)
@@ -5014,7 +5014,7 @@ static void R_DrawTextureSurfaceList(int texturenumsurfaces, msurface_t **textur
        else if (rsurface.texture->currentnumlayers)
        {
                // write depth for anything we skipped on the depth-only pass earlier
-               if (!writedepth && (rsurface.texture->currentmaterialflags & (MATERIALFLAG_BLENDED | MATERIALFLAG_ALPHATEST)))
+               if (rsurface.texture->currentmaterialflags & MATERIALFLAG_ALPHATEST)
                        writedepth = true;
                GL_DepthRange(0, (rsurface.texture->currentmaterialflags & MATERIALFLAG_SHORTDEPTHRANGE) ? 0.0625 : 1);
                GL_PolygonOffset(rsurface.texture->currentpolygonfactor, rsurface.texture->currentpolygonoffset);