From: havoc Date: Thu, 1 Mar 2007 18:49:26 +0000 (+0000) Subject: fix bug that was causing r_editlights light indicators to not render X-Git-Tag: xonotic-v0.1.0preview~3490 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=292da652050c1957bbee941051e358327f44f3b9;p=xonotic%2Fdarkplaces.git fix bug that was causing r_editlights light indicators to not render git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6926 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index acdc369b..55fd1f5b 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2544,6 +2544,7 @@ void R_DrawRTLight(rtlight_t *rtlight, qboolean visible) } } +void R_Shadow_DrawLightSprites(void); void R_ShadowVolumeLighting(qboolean visible) { int lnum, flag; @@ -2552,6 +2553,9 @@ void R_ShadowVolumeLighting(qboolean visible) if (r_refdef.worldmodel && strncmp(r_refdef.worldmodel->name, r_shadow_mapname, sizeof(r_shadow_mapname))) R_Shadow_EditLights_Reload_f(); + if (r_editlights.integer) + R_Shadow_DrawLightSprites(); + R_Shadow_RenderMode_Begin(); flag = r_refdef.rtworld ? LIGHTFLAG_REALTIMEMODE : LIGHTFLAG_NORMALMODE; @@ -3352,7 +3356,6 @@ void R_Shadow_UpdateWorldLightSelection(void) { R_Shadow_SetCursorLocationForView(); R_Shadow_SelectLightInView(); - R_Shadow_DrawLightSprites(); } else R_Shadow_SelectLight(NULL);