diff options
author | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:37 -0500 |
commit | 31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch) | |
tree | c4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/llmath/llvolumemgr.cpp | |
parent | Second Life viewer sources 1.19.1.1 (diff) | |
download | meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2 meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz |
Second Life viewer sources 1.19.1.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmath/llvolumemgr.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
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 ¶ms) | |||
229 | 229 | ||
230 | LLVolumeLODGroup::~LLVolumeLODGroup() | 230 | LLVolumeLODGroup::~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 | ||