Fix sculpties being deleted while being still in use in the scene

meow-7.2.2
Merov Linden 2012-04-30 19:10:55 -07:00
parent 3f31c82a1c
commit c0855030de
1 changed files with 1 additions and 1 deletions

View File

@ -1147,7 +1147,7 @@ S32 LLViewerTexture::getDiscardLevelInAtlas() const
void LLViewerTexture::destroyGLTexture()
{
if(mGLTexturep.notNull())
if(mGLTexturep.notNull() && mGLTexturep->getHasGLTexture())
{
mGLTexturep->destroyGLTexture() ;
mTextureState = DELETED ;