diff options
Diffstat (limited to 'linden/indra/newview/llspatialpartition.cpp')
-rw-r--r-- | linden/indra/newview/llspatialpartition.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/linden/indra/newview/llspatialpartition.cpp b/linden/indra/newview/llspatialpartition.cpp index 283b38b..00bb724 100644 --- a/linden/indra/newview/llspatialpartition.cpp +++ b/linden/indra/newview/llspatialpartition.cpp | |||
@@ -71,7 +71,7 @@ void sg_assert(BOOL expr) | |||
71 | #endif | 71 | #endif |
72 | } | 72 | } |
73 | 73 | ||
74 | #if !LL_RELEASE_FOR_DOWNLOAD | 74 | #if LL_DEBUG |
75 | void validate_drawable(LLDrawable* drawablep) | 75 | void validate_drawable(LLDrawable* drawablep) |
76 | { | 76 | { |
77 | F64 rad = drawablep->getBinRadius(); | 77 | F64 rad = drawablep->getBinRadius(); |
@@ -153,10 +153,6 @@ LLSpatialGroup::~LLSpatialGroup() | |||
153 | 153 | ||
154 | void LLSpatialGroup::clearDrawMap() | 154 | void LLSpatialGroup::clearDrawMap() |
155 | { | 155 | { |
156 | for (LLSpatialGroup::draw_map_t::iterator i = mDrawMap.begin(); i != mDrawMap.end(); ++i) | ||
157 | { | ||
158 | std::for_each(i->second.begin(), i->second.end(), DeletePointer()); | ||
159 | } | ||
160 | mDrawMap.clear(); | 156 | mDrawMap.clear(); |
161 | } | 157 | } |
162 | 158 | ||
@@ -2323,7 +2319,7 @@ void pushVerts(LLSpatialGroup* group, U32 mask) | |||
2323 | 2319 | ||
2324 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) | 2320 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) |
2325 | { | 2321 | { |
2326 | for (std::vector<LLDrawInfo*>::iterator j = i->second.begin(); j != i->second.end(); ++j) | 2322 | for (LLSpatialGroup::drawmap_elem_t::iterator j = i->second.begin(); j != i->second.end(); ++j) |
2327 | { | 2323 | { |
2328 | params = *j; | 2324 | params = *j; |
2329 | pushVerts(params, mask); | 2325 | pushVerts(params, mask); |
@@ -2351,7 +2347,7 @@ void pushVertsColorCoded(LLSpatialGroup* group, U32 mask) | |||
2351 | 2347 | ||
2352 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) | 2348 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) |
2353 | { | 2349 | { |
2354 | for (std::vector<LLDrawInfo*>::iterator j = i->second.begin(); j != i->second.end(); ++j) | 2350 | for (LLSpatialGroup::drawmap_elem_t::iterator j = i->second.begin(); j != i->second.end(); ++j) |
2355 | { | 2351 | { |
2356 | params = *j; | 2352 | params = *j; |
2357 | glColor4f(colors[col].mV[0], colors[col].mV[1], colors[col].mV[2], 0.5f); | 2353 | glColor4f(colors[col].mV[0], colors[col].mV[1], colors[col].mV[2], 0.5f); |
@@ -2702,8 +2698,8 @@ public: | |||
2702 | 2698 | ||
2703 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) | 2699 | for (LLSpatialGroup::draw_map_t::iterator i = group->mDrawMap.begin(); i != group->mDrawMap.end(); ++i) |
2704 | { | 2700 | { |
2705 | std::vector<LLDrawInfo*>& draw_vec = i->second; | 2701 | LLSpatialGroup::drawmap_elem_t& draw_vec = i->second; |
2706 | for (std::vector<LLDrawInfo*>::iterator j = draw_vec.begin(); j != draw_vec.end(); ++j) | 2702 | for (LLSpatialGroup::drawmap_elem_t::iterator j = draw_vec.begin(); j != draw_vec.end(); ++j) |
2707 | { | 2703 | { |
2708 | LLDrawInfo* draw_info = *j; | 2704 | LLDrawInfo* draw_info = *j; |
2709 | if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TEXTURE_ANIM)) | 2705 | if (gPipeline.hasRenderDebugMask(LLPipeline::RENDER_DEBUG_TEXTURE_ANIM)) |
@@ -2889,6 +2885,11 @@ LLDrawInfo::LLDrawInfo(U32 start, U32 end, U32 count, U32 offset, | |||
2889 | { | 2885 | { |
2890 | } | 2886 | } |
2891 | 2887 | ||
2888 | LLDrawInfo::~LLDrawInfo() | ||
2889 | { | ||
2890 | |||
2891 | } | ||
2892 | |||
2892 | LLVertexBuffer* LLGeometryManager::createVertexBuffer(U32 type_mask, U32 usage) | 2893 | LLVertexBuffer* LLGeometryManager::createVertexBuffer(U32 type_mask, U32 usage) |
2893 | { | 2894 | { |
2894 | return new LLVertexBuffer(type_mask, usage); | 2895 | return new LLVertexBuffer(type_mask, usage); |