summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.h
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-10-04 00:42:31 +0000
committerDon Kjer <don@lindenlab.com>2012-10-04 00:42:31 +0000
commit8c0aa31536c447edb6ef4fbee43f99debf593a20 (patch)
treef12847d717afae2a57a68e614e6dd602396847e0 /indra/llrender/llimagegl.h
parentfe52f09952c78534377f26fc2eef9acff4a9b24d (diff)
Adding optimization to skip alpha image analysis when it isn't needed.
Diffstat (limited to 'indra/llrender/llimagegl.h')
-rwxr-xr-xindra/llrender/llimagegl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llrender/llimagegl.h b/indra/llrender/llimagegl.h
index cf3c484c79..57a052b258 100755
--- a/indra/llrender/llimagegl.h
+++ b/indra/llrender/llimagegl.h
@@ -142,7 +142,7 @@ public:
BOOL getHasGLTexture() const { return mTexName != 0; }
LLGLuint getTexName() const { return mTexName; }
- BOOL getIsAlphaMask() const { return mIsMask; }
+ BOOL getIsAlphaMask() const;
BOOL getIsResident(BOOL test_now = FALSE); // not const
@@ -262,11 +262,12 @@ public:
#endif
public:
- static void initClass(S32 num_catagories) ;
+ static void initClass(S32 num_catagories, BOOL skip_analyze_alpha = false);
static void cleanupClass() ;
private:
static S32 sMaxCategories;
+ static BOOL sSkipAnalyzeAlpha;
//the flag to allow to call readBackRaw(...).
//can be removed if we do not use that function at all.