From 8f43447da953d93d179785a6077b49a54bf1b954 Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 1 Oct 2009 06:08:31 +0000 Subject: [PATCH] default to using texture rectangle shadowmaps when available git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9270 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } } } -- 2.39.2