summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Nelson <none@none>2010-03-08 12:09:16 -0800
committerRichard Nelson <none@none>2010-03-08 12:09:16 -0800
commitaa56bb6274f3376dc0d28c37e3467d2398d5f48e (patch)
tree23fc66ff251f78fd05d191426c0ce314ccaa0ef8
parent5917029eefbd32d9db29e2359f9dcc805caeec60 (diff)
better fix for spam in LLTextureView
reviewed by Palmer
-rw-r--r--indra/newview/lltextureview.cpp18
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;