aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerimagelist.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:57 -0500
committerJacek Antonelli2008-08-15 23:45:57 -0500
commit7e3007b63521c4b0c5bbad1c3964a557fc526ce2 (patch)
treeab231ed574db618873d6ebb25293cf7c0cb6d26e /linden/indra/newview/llviewerimagelist.cpp
parentSecond Life viewer sources 1.20.10 (diff)
downloadmeta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.zip
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.gz
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.bz2
meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.xz
Second Life viewer sources 1.20.11
Diffstat (limited to 'linden/indra/newview/llviewerimagelist.cpp')
-rw-r--r--linden/indra/newview/llviewerimagelist.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp
index 384de83..142e862 100644
--- a/linden/indra/newview/llviewerimagelist.cpp
+++ b/linden/indra/newview/llviewerimagelist.cpp
@@ -47,6 +47,7 @@
47#include "llvfs.h" 47#include "llvfs.h"
48#include "llvfile.h" 48#include "llvfile.h"
49#include "llvfsthread.h" 49#include "llvfsthread.h"
50#include "llxmltree.h"
50#include "message.h" 51#include "message.h"
51 52
52#include "llagent.h" 53#include "llagent.h"
@@ -534,7 +535,7 @@ void LLViewerImageList::updateImagesDecodePriorities()
534 const size_t max_update_count = llmin((S32) (1024*gFrameIntervalSeconds) + 1, 32); //target 1024 textures per second 535 const size_t max_update_count = llmin((S32) (1024*gFrameIntervalSeconds) + 1, 32); //target 1024 textures per second
535 S32 update_counter = llmin(max_update_count, mUUIDMap.size()/10); 536 S32 update_counter = llmin(max_update_count, mUUIDMap.size()/10);
536 uuid_map_t::iterator iter = mUUIDMap.upper_bound(mLastUpdateUUID); 537 uuid_map_t::iterator iter = mUUIDMap.upper_bound(mLastUpdateUUID);
537 while(update_counter > 0) 538 while(update_counter > 0 && !mUUIDMap.empty())
538 { 539 {
539 if (iter == mUUIDMap.end()) 540 if (iter == mUUIDMap.end())
540 { 541 {
@@ -715,10 +716,6 @@ void LLViewerImageList::updateImagesUpdateStats()
715 iter != mImageList.end(); ) 716 iter != mImageList.end(); )
716 { 717 {
717 LLViewerImage* imagep = *iter++; 718 LLViewerImage* imagep = *iter++;
718
719 llassert_always(imagep) ;
720 llassert_always(imagep->getNumRefs() > 0 && imagep->getNumRefs() < 100000) ;
721
722 imagep->resetTextureStats(mForceResetTextureStats); 719 imagep->resetTextureStats(mForceResetTextureStats);
723 } 720 }
724 mUpdateStats = FALSE; 721 mUpdateStats = FALSE;