From: eihrul Date: Sun, 18 Mar 2012 17:16:46 +0000 (+0000) Subject: fix usage of linear filter when using shadowmap sampler X-Git-Tag: xonotic-v0.8.0~96^2~276 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=baa3b01fff70aa931cd52de2b969bfd0073afac7;p=xonotic%2Fdarkplaces.git fix usage of linear filter when using shadowmap sampler git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11761 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 40a35c78..186b6032 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2104,7 +2104,7 @@ static void R_Shadow_MakeShadowMap(int side, int size) if (r_shadow_shadowmap2ddepthtexture) return; if (r_fb.usedepthtextures) { - r_shadow_shadowmap2ddepthtexture = R_LoadTextureShadowMap2D(r_shadow_texturepool, "shadowmap", size*2, size*(vid.support.arb_texture_non_power_of_two ? 3 : 4), r_shadow_shadowmapdepthbits >= 24 ? (r_shadow_shadowmapsampler ? TEXTYPE_SHADOWMAP24_COMP : TEXTYPE_SHADOWMAP24_RAW) : (r_shadow_shadowmapsampler ? TEXTYPE_SHADOWMAP16_COMP : TEXTYPE_SHADOWMAP16_RAW), false); + r_shadow_shadowmap2ddepthtexture = R_LoadTextureShadowMap2D(r_shadow_texturepool, "shadowmap", size*2, size*(vid.support.arb_texture_non_power_of_two ? 3 : 4), r_shadow_shadowmapdepthbits >= 24 ? (r_shadow_shadowmapsampler ? TEXTYPE_SHADOWMAP24_COMP : TEXTYPE_SHADOWMAP24_RAW) : (r_shadow_shadowmapsampler ? TEXTYPE_SHADOWMAP16_COMP : TEXTYPE_SHADOWMAP16_RAW), r_shadow_shadowmapsampler); r_shadow_shadowmap2ddepthbuffer = NULL; r_shadow_fbo2d = R_Mesh_CreateFramebufferObject(r_shadow_shadowmap2ddepthtexture, NULL, NULL, NULL, NULL); }