diff options
Diffstat (limited to 'indra/newview/lldrawpoolbump.cpp')
| -rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index e26d98789e..055f99d764 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -699,10 +699,11 @@ void LLBumpImageList::addTextureStats(U8 bump, const LLUUID& base_image_id, F32  void LLBumpImageList::updateImages()  { +    llassert(LLCoros::on_main_thread_main_coro()); // This code is not thread safe +      for (bump_image_map_t::iterator iter = mBrightnessEntries.begin(); iter != mBrightnessEntries.end(); )      { -        bump_image_map_t::iterator curiter = iter++; -        LLViewerTexture* image = curiter->second; +        LLViewerTexture* image = iter->second;          if( image )          {              bool destroy = true; @@ -721,9 +722,11 @@ void LLBumpImageList::updateImages()              if( destroy )              {                  //LL_INFOS() << "*** Destroying bright " << (void*)image << LL_ENDL; -                mBrightnessEntries.erase(curiter);   // deletes the image thanks to reference counting +                iter = mBrightnessEntries.erase(iter);   // deletes the image thanks to reference counting +                continue;              }          } +        ++iter;      }      for (bump_image_map_t::iterator iter = mDarknessEntries.begin(); iter != mDarknessEntries.end(); )  | 
