diff options
author | Eli Linden <eli@lindenlab.com> | 2010-03-08 12:34:06 -0800 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-03-08 12:34:06 -0800 |
commit | 9e53fcdc9036514acc513e08ad4e4b7dd9487d9e (patch) | |
tree | aca53986333daeb4e573dcbb9a2195803180e7c5 /indra/newview | |
parent | 9d18333a551fbddd6422f9ebfd618feedc8bca04 (diff) | |
parent | 62c4418e52c4af5b5cf6f118eedb1e4692829fbc (diff) |
Merge
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lltextureview.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp index a4ca33f10f..6cd8a78b25 100644 --- a/indra/newview/lltextureview.cpp +++ b/indra/newview/lltextureview.cpp @@ -658,6 +658,14 @@ struct compare_decode_pair } }; +struct KillView +{ + void operator()(LLView* viewp) const + { + viewp->die(); + } +}; + void LLTextureView::draw() { if (!mFreezeView) @@ -665,18 +673,12 @@ void LLTextureView::draw() // LLViewerObject *objectp; // S32 te; -//#if LL_DEBUG - BOOL drawing = LLView::sIsDrawing; - LLView::sIsDrawing = FALSE; -//#endif - for_each(mTextureBars.begin(), mTextureBars.end(), DeletePointer()); + for_each(mTextureBars.begin(), mTextureBars.end(), KillView()); mTextureBars.clear(); delete mGLTexMemBar; mGLTexMemBar = 0; -//#if LL_DEBUG - LLView::sIsDrawing = drawing ; -//#endif + typedef std::multiset<decode_pair_t, compare_decode_pair > display_list_t; display_list_t display_image_list; |