]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
slight simplification/optimization of an if statement (no change in
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Jun 2007 07:15:53 +0000 (07:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 24 Jun 2007 07:15:53 +0000 (07:15 +0000)
behavior)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7447 d7cf8633-e32d-0410-b094-e92efae38249

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);