summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rw-r--r--indra/newview/llvoavatar.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index e5e858efba..597513ba0c 100644
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -1070,6 +1070,22 @@ void LLVOAvatar::deleteLayerSetCaches()
if( mLowerBodyLayerSet ) mLowerBodyLayerSet->deleteCaches();
if( mEyesLayerSet ) mEyesLayerSet->deleteCaches();
if( mSkirtLayerSet ) mSkirtLayerSet->deleteCaches();
+
+ if(mUpperMaskTexName)
+ {
+ glDeleteTextures(1, (GLuint*)&mUpperMaskTexName);
+ mUpperMaskTexName = 0 ;
+ }
+ if(mHeadMaskTexName)
+ {
+ glDeleteTextures(1, (GLuint*)&mHeadMaskTexName);
+ mHeadMaskTexName = 0 ;
+ }
+ if(mLowerMaskTexName)
+ {
+ glDeleteTextures(1, (GLuint*)&mLowerMaskTexName);
+ mLowerMaskTexName = 0 ;
+ }
}
// static