summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-04-21 16:50:15 -0500
committerDave Parks <davep@lindenlab.com>2010-04-21 16:50:15 -0500
commitd9b624e5c2bf43a6ce1635f4a2d1a6ba355d8040 (patch)
treed0eebece35ea610aa329d4431bf9a1a66ad947d9 /indra
parent2f695e1e24f804ee77a3a3b2533914eff40a9e19 (diff)
Make attached lights not render when disabled in deferred rendering.
(transplanted from 4be49811a590ad3107af3f546475ee6d33928120)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 37ab95f0e8..af0aa41ca5 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -6664,6 +6664,15 @@ void LLPipeline::renderDeferredLighting()
continue;
}
+ if (volume->isAttachment())
+ {
+ if (!sRenderAttachedLights)
+ {
+ continue;
+ }
+ }
+
+
LLVector3 center = drawablep->getPositionAgent();
F32* c = center.mV;
F32 s = volume->getLightRadius()*1.5f;