From ea64e826d2f2c35516912edccf68ec06a55431e4 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 30 Dec 2009 12:19:15 +0000 Subject: [PATCH] fix water rendering git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9748 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index eff356fa..15f71f4a 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -10183,17 +10183,11 @@ static void R_DrawTextureSurfaceList_GL20(int texturenumsurfaces, const msurface R_Mesh_TexCoordPointer(4, 2, rsurface.modeltexcoordlightmap2f, rsurface.modeltexcoordlightmap2f_bufferobject, rsurface.modeltexcoordlightmap2f_bufferoffset); if (refract) - { - GL_BlendFunc(GL_ONE, GL_ZERO); GL_DepthMask(true); - GL_AlphaTest(false); - } else - { - GL_BlendFunc(rsurface.texture->currentlayers[0].blendfunc1, rsurface.texture->currentlayers[0].blendfunc2); GL_DepthMask(writedepth && !(rsurface.texture->currentmaterialflags & MATERIALFLAG_BLENDED)); - GL_AlphaTest((rsurface.texture->currentmaterialflags & MATERIALFLAG_ALPHATEST) != 0 && !r_shadow_usingdeferredprepass); - } + GL_BlendFunc(rsurface.texture->currentlayers[0].blendfunc1, rsurface.texture->currentlayers[0].blendfunc2); + GL_AlphaTest((rsurface.texture->currentmaterialflags & MATERIALFLAG_ALPHATEST) != 0 && !r_shadow_usingdeferredprepass); if (rsurface.uselightmaptexture && !(rsurface.texture->currentmaterialflags & MATERIALFLAG_FULLBRIGHT)) { -- 2.39.2