]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
remove another useless check
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Dec 2010 15:23:30 +0000 (15:23 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 14 Dec 2010 18:46:58 +0000 (19:46 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10661 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=42114392db4b787646f55e85cdfbf426f94ae439

gl_rmain.c

index 8130d159aa6f08e3e4b5118a3d700e66e2af222f..a08e3ff8416f979499b531b74e9e3eb8b3d86d2a 100644 (file)
@@ -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));