summaryrefslogtreecommitdiff
path: root/indra/newview/lltextureview.cpp
diff options
context:
space:
mode:
authorEli Linden <eli@lindenlab.com>2010-03-08 10:56:55 -0800
committerEli Linden <eli@lindenlab.com>2010-03-08 10:56:55 -0800
commit5917029eefbd32d9db29e2359f9dcc805caeec60 (patch)
treeab995985e3dcf011d9938ab78838b3f1e669ffab /indra/newview/lltextureview.cpp
parent72c6dc9698d0815bfd5b9ebefb401d92c6337500 (diff)
parent0e11e774f839abf4c7e051fc3b021fd6d470a092 (diff)
Merge
Diffstat (limited to 'indra/newview/lltextureview.cpp')
-rw-r--r--indra/newview/lltextureview.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp
index 98731f90f4..a4ca33f10f 100644
--- a/indra/newview/lltextureview.cpp
+++ b/indra/newview/lltextureview.cpp
@@ -665,12 +665,18 @@ 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());
mTextureBars.clear();
-
- delete mGLTexMemBar;
+
+ 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;
@@ -683,6 +689,10 @@ void LLTextureView::draw()
iter != gTextureList.mImageList.end(); )
{
LLPointer<LLViewerFetchedTexture> imagep = *iter++;
+ if(!imagep->hasFetcher())
+ {
+ continue ;
+ }
S32 cur_discard = imagep->getDiscardLevel();
S32 desired_discard = imagep->mDesiredDiscardLevel;