summaryrefslogtreecommitdiff
path: root/indra/newview/llvocache.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-10-04 11:09:29 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-10-04 11:09:29 -0600
commitb0aa408a665ce61ff374f99e421812482fe53848 (patch)
treed5c29a12e99268377659d3f392a9c7a0e24b33df /indra/newview/llvocache.cpp
parent9ae025f8ee8688b25678a243ba19f1398de08060 (diff)
fix for SH-4544: Interesting: Shadows from platforms above the camera flicker
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rwxr-xr-xindra/newview/llvocache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp
index ada412be8c..71d5a92df3 100755
--- a/indra/newview/llvocache.cpp
+++ b/indra/newview/llvocache.cpp
@@ -361,6 +361,12 @@ bool LLVOCacheEntry::isRecentlyVisible() const
{
bool vis = LLViewerOctreeEntryData::isRecentlyVisible();
+ if(!vis && getGroup())
+ {
+ //recently visible to any camera?
+ vis = ((LLOcclusionCullingGroup*)getGroup())->isAnyRecentlyVisible();
+ }
+
//combination of projected area and squared distance
if(!vis && !mParentID && mSceneContrib > sBackAngleTanSquared)
{