From: havoc Date: Wed, 30 Dec 2009 12:19:15 +0000 (+0000) Subject: fix water rendering X-Git-Tag: xonotic-v0.1.0preview~900 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea64e826d2f2c35516912edccf68ec06a55431e4;p=xonotic%2Fdarkplaces.git fix water rendering git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9748 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)) {