From 2c25118536d3ae0fd015df7b82325211c8c3d72a Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 4 Sep 2008 05:56:33 +0000 Subject: [PATCH] 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 --- r_shadow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.39.2