From: eihrul Date: Thu, 1 Oct 2009 06:08:31 +0000 (+0000) Subject: default to using texture rectangle shadowmaps when available X-Git-Tag: xonotic-v0.1.0preview~1363 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f43447da953d93d179785a6077b49a54bf1b954;p=xonotic%2Fdarkplaces.git default to using texture rectangle shadowmaps when available git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9270 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 27eeaa41..b0c34542 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -388,15 +388,15 @@ void R_Shadow_SetShadowMode(void) break; } } - r_shadow_shadowmode = r_shadow_shadowmaptexturetype; + r_shadow_shadowmode = r_shadow_shadowmaptexturetype; if(r_shadow_shadowmode <= 0) { - if(!gl_texturerectangle || gl_support_arb_texture_non_power_of_two) + if((gl_support_amd_texture_texture4 || gl_support_arb_texture_gather) && r_shadow_shadowmappcf && !r_shadow_shadowmapsampler) r_shadow_shadowmode = 1; - else if((gl_support_amd_texture_texture4 || gl_support_arb_texture_gather) && r_shadow_shadowmappcf && !r_shadow_shadowmapsampler) - r_shadow_shadowmode = 1; - else + else if(gl_texturerectangle) r_shadow_shadowmode = 2; + else + r_shadow_shadowmode = 1; } } }