From: havoc Date: Mon, 28 Mar 2011 10:18:01 +0000 (+0000) Subject: remove check for active rtlights in bouncegrid because it was not X-Git-Tag: xonotic-v0.5.0~351 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;ds=sidebyside;h=0744158bbc4a9dd69d1c2a1d07d12a585c49fac9;hp=5194de3a19c46b98cfc110e1973387e16972eb78;p=xonotic%2Fdarkplaces.git remove check for active rtlights in bouncegrid because it was not working git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10975 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=ef67922d463314dd46c32d0d55cc71255e1b7add --- diff --git a/r_shadow.c b/r_shadow.c index 9d52e07e..7df13bfd 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2386,28 +2386,6 @@ static void R_Shadow_UpdateBounceGridTexture(void) r_shadow_bouncegridintensity = r_shadow_bouncegrid_intensity.value; - // see if there are really any lights to render... - if (enable && r_shadow_bouncegrid_static.integer) - { - enable = false; - range = Mem_ExpandableArray_IndexRange(&r_shadow_worldlightsarray); // checked - for (lightindex = 0;lightindex < range;lightindex++) - { - light = (dlight_t *) Mem_ExpandableArray_RecordAtIndex(&r_shadow_worldlightsarray, lightindex); - if (!light || !(light->flags & flag)) - continue; - rtlight = &light->rtlight; - // when static, we skip styled lights because they tend to change... - if (rtlight->style > 0) - continue; - VectorScale(rtlight->color, (rtlight->ambientscale + rtlight->diffusescale + rtlight->specularscale), lightcolor); - if (!VectorLength2(lightcolor)) - continue; - enable = true; - break; - } - } - if (!enable) { if (r_shadow_bouncegridtexture)