From: havoc Date: Thu, 4 Sep 2008 05:56:33 +0000 (+0000) Subject: fix crashes on Win64 builds caused by stack overflow in R_DrawRTLight X-Git-Tag: xonotic-v0.1.0preview~2096 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=2c25118536d3ae0fd015df7b82325211c8c3d72a;p=xonotic%2Fdarkplaces.git fix crashes on Win64 builds caused by stack overflow in R_DrawRTLight (reported by Willis) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8488 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 067910e5..414560e4 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2860,10 +2860,10 @@ void R_DrawRTLight(rtlight_t *rtlight, qboolean visible) int numlightentities_noselfshadow; int numshadowentities; int numshadowentities_noselfshadow; - entity_render_t *lightentities[MAX_EDICTS]; - entity_render_t *lightentities_noselfshadow[MAX_EDICTS]; - entity_render_t *shadowentities[MAX_EDICTS]; - entity_render_t *shadowentities_noselfshadow[MAX_EDICTS]; + static entity_render_t *lightentities[MAX_EDICTS]; + static entity_render_t *lightentities_noselfshadow[MAX_EDICTS]; + static entity_render_t *shadowentities[MAX_EDICTS]; + static entity_render_t *shadowentities_noselfshadow[MAX_EDICTS]; // skip lights that don't light because of ambientscale+diffusescale+specularscale being 0 (corona only lights) // skip lights that are basically invisible (color 0 0 0)