From 09c1259248d45701c98fc3ae63687ec06bf7e686 Mon Sep 17 00:00:00 2001 From: eihrul Date: Sat, 17 Oct 2009 14:55:29 +0000 Subject: [PATCH] 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 --- r_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || -- 2.39.2