summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-12-10 15:24:08 -0500
committerOz Linden <oz@lindenlab.com>2012-12-10 15:24:08 -0500
commit623a06aabd9d7e5c7e74211360aa233ec33e4977 (patch)
tree21c815db542e45fc07473cd26a24561c5f27add8 /indra/newview/llface.cpp
parentd56a98dea4c7523a759bea4740d8bdde1df15e30 (diff)
parenta9ada0cc6a1418da0908f995b1369912a270b22d (diff)
merge release tag
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-xindra/newview/llface.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 188f943f13..605cb81c10 100755
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1062,7 +1062,11 @@ bool LLFace::canRenderAsMask()
}
const LLTextureEntry* te = getTextureEntry();
-
+ if( !te || !getViewerObject() || !getTexture() )
+ {
+ return false;
+ }
+
if ((te->getColor().mV[3] == 1.0f) && // can't treat as mask if we have face alpha
(te->getGlow() == 0.f) && // glowing masks are hard to implement - don't mask
getTexture()->getIsAlphaMask()) // texture actually qualifies for masking (lazily recalculated but expensive)