From: eihrul Date: Sat, 17 Oct 2009 14:55:29 +0000 (+0000) Subject: fix r_shadow_shadowmapping_maxsize validation to not reset each frame if it exceeds... X-Git-Tag: xonotic-v0.1.0preview~1290 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=09c1259248d45701c98fc3ae63687ec06bf7e686;p=xonotic%2Fdarkplaces.git fix r_shadow_shadowmapping_maxsize validation to not reset each frame if it exceeds gl_max_size git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9345 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index a167d360..653caced 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -4335,7 +4335,7 @@ void R_ShadowVolumeLighting(qboolean visible) dlight_t *light; size_t range; - if (r_shadow_shadowmapmaxsize != r_shadow_shadowmapping_maxsize.integer || + if (r_shadow_shadowmapmaxsize != bound(1, r_shadow_shadowmapping_maxsize.integer, gl_max_size.integer / 4) || (r_shadow_shadowmode != R_SHADOW_SHADOWMODE_STENCIL) != (r_shadow_shadowmapping.integer && r_glsl.integer && gl_support_fragment_shader && gl_support_ext_framebuffer_object) || r_shadow_shadowmapvsdct != (r_shadow_shadowmapping_vsdct.integer != 0) || r_shadow_shadowmaptexturetype != r_shadow_shadowmapping_texturetype.integer ||