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.7.0~197 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f0f7f07638836cc963938b25bb4fdfeb1d6cec31;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 ::stable-branch::merge=baa3b01fff70aa931cd52de2b969bfd0073afac7 --- diff --git a/r_shadow.c b/r_shadow.c index bdf4f2c5..36df51ab 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); }