fix for SH-4284: interesting: viewer does not render cacheable objects on far corner of region when camera moves

meow-7.2.2
Xiaohong Bao 2013-06-25 17:32:17 -06:00
parent e6e82b5b35
commit c0fd2a15e4
1 changed files with 3 additions and 12 deletions

View File

@ -414,9 +414,10 @@ public:
base_group->getOctreeNode()->getParent()) //never occlusion cull the root node
{
LLOcclusionCullingGroup* group = (LLOcclusionCullingGroup*)base_group;
if(group->needsUpdate())
if(group->needsUpdate())//needs to issue new occlusion culling check.
{
return false; //needs to issue new occlusion culling check.
mPartition->addOccluders(group);
return true;
}
group->checkOcclusion();
@ -461,16 +462,6 @@ public:
virtual void processGroup(LLviewerOctreeGroup* base_group)
{
if(mUseObjectCacheOcclusion && base_group->getOctreeNode()->getParent())
{
LLOcclusionCullingGroup* group = (LLOcclusionCullingGroup*)base_group;
if (group->needsUpdate() || group->mVisible[LLViewerCamera::sCurCameraID] < LLDrawable::getCurrentFrame() - 1)
{
((LLOcclusionCullingGroup*)group)->doOcclusion(mCamera);
group->setVisible();
return; //wait for occlusion culling results
}
}
mRegionp->addVisibleGroup(base_group);
}