git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9345
d7cf8633-e32d-0410-b094-
e92efae38249
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 ||