aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llspatialpartition.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llspatialpartition.cpp')
-rw-r--r--linden/indra/newview/llspatialpartition.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/linden/indra/newview/llspatialpartition.cpp b/linden/indra/newview/llspatialpartition.cpp
index b6fbfbf..7d715be 100644
--- a/linden/indra/newview/llspatialpartition.cpp
+++ b/linden/indra/newview/llspatialpartition.cpp
@@ -1806,7 +1806,7 @@ S32 LLSpatialPartition::cull(LLCamera &camera, std::vector<LLDrawable *>* result
1806 1806
1807BOOL earlyFail(LLCamera* camera, LLSpatialGroup* group) 1807BOOL earlyFail(LLCamera* camera, LLSpatialGroup* group)
1808{ 1808{
1809 const F32 vel = (gCamera->getVelocityStat()->getCurrent()+0.2f); 1809 const F32 vel = (LLViewerCamera::getInstance()->getVelocityStat()->getCurrent()+0.2f);
1810 LLVector3 c = group->mBounds[0]; 1810 LLVector3 c = group->mBounds[0];
1811 LLVector3 r = group->mBounds[1]*SG_OCCLUSION_FUDGE + LLVector3(vel,vel,vel); 1811 LLVector3 r = group->mBounds[1]*SG_OCCLUSION_FUDGE + LLVector3(vel,vel,vel);
1812 1812
@@ -2497,7 +2497,7 @@ void LLSpatialPartition::renderDebug()
2497 if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY)) 2497 if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TEXTURE_PRIORITY))
2498 { 2498 {
2499 //sLastMaxTexPriority = lerp(sLastMaxTexPriority, sCurMaxTexPriority, gFrameIntervalSeconds); 2499 //sLastMaxTexPriority = lerp(sLastMaxTexPriority, sCurMaxTexPriority, gFrameIntervalSeconds);
2500 sLastMaxTexPriority = (F32) gCamera->getScreenPixelArea(); 2500 sLastMaxTexPriority = (F32) LLViewerCamera::getInstance()->getScreenPixelArea();
2501 sCurMaxTexPriority = 0.f; 2501 sCurMaxTexPriority = 0.f;
2502 } 2502 }
2503 2503
@@ -2510,7 +2510,7 @@ void LLSpatialPartition::renderDebug()
2510 gPipeline.disableLights(); 2510 gPipeline.disableLights();
2511 2511
2512 LLSpatialBridge* bridge = asBridge(); 2512 LLSpatialBridge* bridge = asBridge();
2513 LLCamera* camera = gCamera; 2513 LLCamera* camera = LLViewerCamera::getInstance();
2514 2514
2515 if (bridge) 2515 if (bridge)
2516 { 2516 {
@@ -2527,7 +2527,7 @@ void LLSpatialPartition::renderDebug()
2527 2527
2528BOOL LLSpatialPartition::isVisible(const LLVector3& v) 2528BOOL LLSpatialPartition::isVisible(const LLVector3& v)
2529{ 2529{
2530 if (!gCamera->sphereInFrustum(v, 4.0f)) 2530 if (!LLViewerCamera::getInstance()->sphereInFrustum(v, 4.0f))
2531 { 2531 {
2532 return FALSE; 2532 return FALSE;
2533 } 2533 }
@@ -2650,6 +2650,10 @@ void LLCullResult::clear()
2650 2650
2651 for (U32 i = 0; i < LLRenderPass::NUM_RENDER_TYPES; i++) 2651 for (U32 i = 0; i < LLRenderPass::NUM_RENDER_TYPES; i++)
2652 { 2652 {
2653 for (U32 j = 0; j < mRenderMapSize[i]; j++)
2654 {
2655 mRenderMap[i][j] = 0;
2656 }
2653 mRenderMapSize[i] = 0; 2657 mRenderMapSize[i] = 0;
2654 } 2658 }
2655} 2659}