From: havoc Date: Sun, 24 Jun 2007 07:15:53 +0000 (+0000) Subject: slight simplification/optimization of an if statement (no change in X-Git-Tag: xonotic-v0.1.0preview~3017 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=e66888535b55cc79de766b5296d426519e847009;p=xonotic%2Fdarkplaces.git slight simplification/optimization of an if statement (no change in behavior) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7447 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 2883c1be..c0bc61c3 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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);