summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2012-10-31 17:05:53 -0600
committerXiaohong Bao <bao@lindenlab.com>2012-10-31 17:05:53 -0600
commit5ae116f89b8459963ccb6ae9125d94ffaa79025e (patch)
treed9404c72f950d505cad189764bbf3ca07e62c50d /indra/newview/pipeline.cpp
parente35a220bf7dd47132174c81181d5f59fb0d54c5d (diff)
for SH-3471: create a simplified version of octree for object cache entries.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index e06577c512..850714f676 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -86,6 +86,7 @@
#include "llviewerregion.h" // for audio debugging.
#include "llviewerwindow.h" // For getSpinAxis
#include "llvoavatarself.h"
+#include "llvocache.h"
#include "llvoground.h"
#include "llvosky.h"
#include "llvotree.h"
@@ -2352,12 +2353,15 @@ void LLPipeline::updateCull(LLCamera& camera, LLCullResult& result, S32 water_cl
{
part->cull(camera);
}
- else if(part->mPartitionType == LLViewerRegion::PARTITION_VO_CACHE)
- {
- part->cull(camera);
- }
}
}
+
+ //scan the VO Cache tree
+ LLVOCachePartition* vo_part = region->getVOCachePartition();
+ if(vo_part)
+ {
+ vo_part->cull(camera);
+ }
}
if (bound_shader)
@@ -2433,12 +2437,8 @@ void LLPipeline::markNotCulled(LLSpatialGroup* group, LLCamera& camera)
}
assertInitialized();
-
- if(group->mSpatialPartition->mPartitionType == LLViewerRegion::PARTITION_VO_CACHE)
- {
- group->mSpatialPartition->mRegionp->addVisibleGroup(group);
- }
- else if (!group->mSpatialPartition->mRenderByGroup)
+
+ if (!group->mSpatialPartition->mRenderByGroup)
{ //render by drawable
sCull->pushDrawableGroup(group);
}