From: divverent Date: Tue, 14 Dec 2010 15:23:30 +0000 (+0000) Subject: remove another useless check X-Git-Tag: xonotic-v0.1.0preview~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=842afa2d933b0eddaffc66e97dea63cb844119e1;p=xonotic%2Fdarkplaces.git remove another useless check git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10661 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=42114392db4b787646f55e85cdfbf426f94ae439 --- diff --git a/gl_rmain.c b/gl_rmain.c index 8130d159..a08e3ff8 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -12650,7 +12650,7 @@ static void R_DrawTextureSurfaceList_GL20(int texturenumsurfaces, const msurface R_SetupShader_Surface(vec3_origin, (rsurface.texture->currentmaterialflags & MATERIALFLAG_MODELLIGHT) != 0, 1, 1, rsurface.texture->specularscale, RSURFPASS_BASE, end-start, texturesurfacelist + start, NULL); RSurf_DrawBatch(); } - else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_REFLECTION) && !r_waterstate.renderingscene) + else if ((rsurface.texture->currentmaterialflags & MATERIALFLAG_REFLECTION)) { // render surface with reflection texture as input GL_DepthMask(writedepth && !(rsurface.texture->currentmaterialflags & MATERIALFLAG_BLENDED));