diff options
author | Dave Parks <davep@lindenlab.com> | 2011-03-04 18:46:26 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-03-04 18:46:26 -0600 |
commit | 78cc3211275cad68cf4cd1a0a1d72dba9dae470d (patch) | |
tree | 383f7e7f8ec11476e90c8536ea0f969363e7c1b9 /indra/newview | |
parent | 6a86c65e46f92f1a955d31e2d0b9d7ffcd171134 (diff) |
SH-1069 Fix for some bump maps not loading fully.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/lldrawpoolbump.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lldrawpoolbump.cpp b/indra/newview/lldrawpoolbump.cpp index 0afa8b1794..38ff3083ce 100644 --- a/indra/newview/lldrawpoolbump.cpp +++ b/indra/newview/lldrawpoolbump.cpp @@ -1121,7 +1121,11 @@ void LLBumpImageList::onSourceLoaded( BOOL success, LLViewerTexture *src_vi, LLI { bump_image_map_t& entries_list(bump_code == BE_BRIGHTNESS ? gBumpImageList.mBrightnessEntries : gBumpImageList.mDarknessEntries ); bump_image_map_t::iterator iter = entries_list.find(source_asset_id); - if (iter != entries_list.end()) // bump not cached yet + + if (iter != entries_list.end() || + iter->second.isNull() || + iter->second->getWidth() != src->getWidth() || + iter->second->getHeight() != src->getHeight()) // bump not cached yet or has changed resolution { LLPointer<LLImageRaw> dst_image = new LLImageRaw(src->getWidth(), src->getHeight(), 1); U8* dst_data = dst_image->getData(); |