diff options
Diffstat (limited to 'linden/indra/newview/llvoavatar.cpp')
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 557a6d9..42976ed 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2001&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2001-2008, Linden Research, Inc. | 7 | * Copyright (c) 2001-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -1069,6 +1069,22 @@ void LLVOAvatar::deleteLayerSetCaches() | |||
1069 | if( mLowerBodyLayerSet ) mLowerBodyLayerSet->deleteCaches(); | 1069 | if( mLowerBodyLayerSet ) mLowerBodyLayerSet->deleteCaches(); |
1070 | if( mEyesLayerSet ) mEyesLayerSet->deleteCaches(); | 1070 | if( mEyesLayerSet ) mEyesLayerSet->deleteCaches(); |
1071 | if( mSkirtLayerSet ) mSkirtLayerSet->deleteCaches(); | 1071 | if( mSkirtLayerSet ) mSkirtLayerSet->deleteCaches(); |
1072 | |||
1073 | if(mUpperMaskTexName) | ||
1074 | { | ||
1075 | glDeleteTextures(1, (GLuint*)&mUpperMaskTexName); | ||
1076 | mUpperMaskTexName = 0 ; | ||
1077 | } | ||
1078 | if(mHeadMaskTexName) | ||
1079 | { | ||
1080 | glDeleteTextures(1, (GLuint*)&mHeadMaskTexName); | ||
1081 | mHeadMaskTexName = 0 ; | ||
1082 | } | ||
1083 | if(mLowerMaskTexName) | ||
1084 | { | ||
1085 | glDeleteTextures(1, (GLuint*)&mLowerMaskTexName); | ||
1086 | mLowerMaskTexName = 0 ; | ||
1087 | } | ||
1072 | } | 1088 | } |
1073 | 1089 | ||
1074 | // static | 1090 | // static |