diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-10-04 12:47:56 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2013-10-04 12:47:56 -0400 |
commit | 77ceb37219bd27c93a3b47c66818ac09f8973d1c (patch) | |
tree | 780ae6c759d07c6e06b9c393bc1fabc72920c327 | |
parent | 230db3e83b4c018d381ad5f4fe77e7f7f384f397 (diff) | |
parent | ab0c38612f5d055b41fdf08efa9ab8f2c30ec6b8 (diff) |
merge
-rw-r--r-- | indra/llappearance/lltexlayer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/indra/llappearance/lltexlayer.cpp b/indra/llappearance/lltexlayer.cpp index 59765b3833..510d8ce879 100644 --- a/indra/llappearance/lltexlayer.cpp +++ b/indra/llappearance/lltexlayer.cpp @@ -1776,13 +1776,11 @@ LLTexLayer* LLTexLayerTemplate::getLayer(U32 i) const /*virtual*/ void LLTexLayerTemplate::gatherAlphaMasks(U8 *data, S32 originX, S32 originY, S32 width, S32 height) { U32 num_wearables = updateWearableCache(); - for (U32 i = 0; i < num_wearables; i++) + U32 i = num_wearables - 1; // For rendering morph masks, we only want to use the top wearable + LLTexLayer *layer = getLayer(i); + if (layer) { - LLTexLayer *layer = getLayer(i); - if (layer) - { - layer->addAlphaMask(data, originX, originY, width, height); - } + layer->addAlphaMask(data, originX, originY, width, height); } } |