summaryrefslogtreecommitdiff
path: root/indra/llrender/llimagegl.h
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-06-01 10:34:33 -0500
committerDave Parks <davep@lindenlab.com>2022-06-01 10:34:33 -0500
commit4261cbba783359e71b691d6e0e9477ce53f60251 (patch)
tree7aca26d2ca8e514a6dcf09adf517007fe07dab4b /indra/llrender/llimagegl.h
parent609476e607b18d303afa5f5b5eeabeca84f95d16 (diff)
SL-17485 Add texture memory accounting for OS X
Diffstat (limited to 'indra/llrender/llimagegl.h')
-rw-r--r--indra/llrender/llimagegl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llrender/llimagegl.h b/indra/llrender/llimagegl.h
index 1716338c0b..619421e68a 100644
--- a/indra/llrender/llimagegl.h
+++ b/indra/llrender/llimagegl.h
@@ -52,6 +52,10 @@ class LLImageGL : public LLRefCount
{
friend class LLTexUnit;
public:
+
+ // For OS X use only -- get an estimate of how many bytes have been allocated in vram for textures
+ static U64 getTextureBytesAllocated();
+
// These 2 functions replace glGenTextures() and glDeleteTextures()
static void generateTextures(S32 numTextures, U32 *textures);
static void deleteTextures(S32 numTextures, const U32 *textures);
@@ -162,7 +166,7 @@ public:
void updatePickMask(S32 width, S32 height, const U8* data_in);
BOOL getMask(const LLVector2 &tc);
- void checkTexSize(bool forced = false) const ;
+ void checkTexSize(bool forced = false) const ;
// Sets the addressing mode used to sample the texture
// (such as wrapping, mirrored wrapping, and clamp)