summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-08-27 17:40:33 +0300
committermaxim_productengine <mnikolenko@productengine.com>2019-08-27 17:40:33 +0300
commit9c3c8450a64cd644966f3242af0a2dbde0eacab9 (patch)
treeec19a3f48adb18cd595fc8f115abd30b72b8e2ae /indra
parent82c3bf0a9881e29745851b1c0baa3ed69ecc4735 (diff)
SL-11782 FIXED Light is still visible when it's out of the draw distance
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/pipeline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index bd73c234a6..a5f99676b4 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -8686,7 +8686,8 @@ void LLPipeline::renderDeferredLighting()
const LLViewerObject *vobj = drawablep->getVObj();
if(vobj && vobj->getAvatar()
- && (vobj->getAvatar()->isTooComplex() || vobj->getAvatar()->isInMuteList()))
+ && (vobj->getAvatar()->isTooComplex() || vobj->getAvatar()->isInMuteList())
+ || (vobj && dist_vec(vobj->getPosition(), LLViewerCamera::getInstance()->getOrigin()) > RenderFarClip))
{
continue;
}