aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmath')
-rw-r--r--linden/indra/llmath/lloctree.h2
-rw-r--r--linden/indra/llmath/llvolume.cpp2
-rw-r--r--linden/indra/llmath/llvolumemgr.cpp11
-rw-r--r--linden/indra/llmath/llvolumemgr.h2
4 files changed, 5 insertions, 12 deletions
diff --git a/linden/indra/llmath/lloctree.h b/linden/indra/llmath/lloctree.h
index 203cb41..52ad1bb 100644
--- a/linden/indra/llmath/lloctree.h
+++ b/linden/indra/llmath/lloctree.h
@@ -567,8 +567,6 @@ public:
567 { 567 {
568 } 568 }
569 569
570 bool isLeaf() { return false; }
571
572 bool balance() 570 bool balance()
573 { 571 {
574 if (this->getChildCount() == 1 && 572 if (this->getChildCount() == 1 &&
diff --git a/linden/indra/llmath/llvolume.cpp b/linden/indra/llmath/llvolume.cpp
index 7403724..4f1c260 100644
--- a/linden/indra/llmath/llvolume.cpp
+++ b/linden/indra/llmath/llvolume.cpp
@@ -1859,7 +1859,7 @@ inline U32 sculpt_xy_to_index(U32 x, U32 y, U16 sculpt_width, U16 sculpt_height,
1859 U32 index = (x + y * sculpt_width) * sculpt_components; 1859 U32 index = (x + y * sculpt_width) * sculpt_components;
1860 1860
1861 // attempt to resolve DEV-11158 - remove assert later. 1861 // attempt to resolve DEV-11158 - remove assert later.
1862 llassert(index < sculpt_width * sculpt_height * sculpt_components); 1862 //llassert(index < sculpt_width * sculpt_height * sculpt_components);
1863 1863
1864 return index; 1864 return index;
1865} 1865}
diff --git a/linden/indra/llmath/llvolumemgr.cpp b/linden/indra/llmath/llvolumemgr.cpp
index 4bf7ca6..db99959 100644
--- a/linden/indra/llmath/llvolumemgr.cpp
+++ b/linden/indra/llmath/llvolumemgr.cpp
@@ -229,12 +229,6 @@ LLVolumeLODGroup::LLVolumeLODGroup(const LLVolumeParams &params)
229 229
230LLVolumeLODGroup::~LLVolumeLODGroup() 230LLVolumeLODGroup::~LLVolumeLODGroup()
231{ 231{
232 S32 i;
233 for (i = 0; i < NUM_LODS; i++)
234 {
235 delete mVolumeLODs[i];
236 mVolumeLODs[i] = NULL;
237 }
238} 232}
239 233
240 234
@@ -242,11 +236,12 @@ LLVolume * LLVolumeLODGroup::getLOD(const S32 detail)
242{ 236{
243 llassert(detail >=0 && detail < NUM_LODS); 237 llassert(detail >=0 && detail < NUM_LODS);
244 mAccessCount[detail]++; 238 mAccessCount[detail]++;
245 mLODRefs[detail]++; 239
246 if (!mVolumeLODs[detail]) 240 if (!mLODRefs[detail])
247 { 241 {
248 mVolumeLODs[detail] = new LLVolume(mParams, mDetailScales[detail]); 242 mVolumeLODs[detail] = new LLVolume(mParams, mDetailScales[detail]);
249 } 243 }
244 mLODRefs[detail]++;
250 return mVolumeLODs[detail]; 245 return mVolumeLODs[detail];
251} 246}
252 247
diff --git a/linden/indra/llmath/llvolumemgr.h b/linden/indra/llmath/llvolumemgr.h
index 0d6aa56..889bc56 100644
--- a/linden/indra/llmath/llvolumemgr.h
+++ b/linden/indra/llmath/llvolumemgr.h
@@ -69,7 +69,7 @@ protected:
69 LLVolumeParams mParams; 69 LLVolumeParams mParams;
70 70
71 S32 mLODRefs[NUM_LODS]; 71 S32 mLODRefs[NUM_LODS];
72 LLVolume *mVolumeLODs[NUM_LODS]; 72 LLPointer<LLVolume> mVolumeLODs[NUM_LODS];
73 static F32 mDetailThresholds[NUM_LODS]; 73 static F32 mDetailThresholds[NUM_LODS];
74 static F32 mDetailScales[NUM_LODS]; 74 static F32 mDetailScales[NUM_LODS];
75 S32 mAccessCount[NUM_LODS]; 75 S32 mAccessCount[NUM_LODS];