summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-11-15 12:19:05 -0600
committerDave Parks <davep@lindenlab.com>2011-11-15 12:19:05 -0600
commit73d70b5d4562cf00f810446479918e64cbcb6008 (patch)
treec25658c73f90d27da087cf96298699f72ed2bd1c
parentae17efe70214664214b5ab619c7c58d1c78c7d2f (diff)
SH-2240 Make alpha mask cutoff a little less aggressive (err on the side of not creating an alpha mask)
-rw-r--r--indra/llrender/llimagegl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llimagegl.cpp b/indra/llrender/llimagegl.cpp
index 7d73888151..789402c4a9 100644
--- a/indra/llrender/llimagegl.cpp
+++ b/indra/llrender/llimagegl.cpp
@@ -1853,7 +1853,7 @@ void LLImageGL::analyzeAlpha(const void* data_in, U32 w, U32 h)
upperhalftotal += sample[i];
}
- if (midrangetotal > length/16 || // lots of midrange, or
+ if (midrangetotal > length/48 || // lots of midrange, or
(lowerhalftotal == length && alphatotal != 0) || // all close to transparent but not all totally transparent, or
(upperhalftotal == length && alphatotal != 255*length)) // all close to opaque but not all totally opaque
{