summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2010-03-10 18:24:02 -0700
committerXiaohong Bao <bao@lindenlab.com>2010-03-10 18:24:02 -0700
commitdc44d2dc1aec9661273abc7c2d78d290369c21cd (patch)
tree8a32299aa1d5aea70cc7f3e4d4f66212997b9d68 /indra/newview
parentebc63494b3a7791be00c91ca51387a73c975f912 (diff)
a try to fix EXT-5845: crash on LLTexLayerTemplate::render [secondlife-bin lltexlayer.cpp:1898]
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/lltexlayer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lltexlayer.cpp b/indra/newview/lltexlayer.cpp
index 6ed95f2cbf..386b636367 100644
--- a/indra/newview/lltexlayer.cpp
+++ b/indra/newview/lltexlayer.cpp
@@ -1883,6 +1883,11 @@ LLTexLayer* LLTexLayerTemplate::getLayer(U32 i)
/*virtual*/ BOOL LLTexLayerTemplate::render(S32 x, S32 y, S32 width, S32 height)
{
+ if(!mInfo)
+ {
+ return FALSE ;
+ }
+
BOOL success = TRUE;
updateWearableCache();
for (wearable_cache_t::const_iterator iter = mWearableCache.begin(); iter!= mWearableCache.end(); iter++)