Fix sculpties being deleted while being still in use in the scene
parent
3f31c82a1c
commit
c0855030de
|
|
@ -1147,7 +1147,7 @@ S32 LLViewerTexture::getDiscardLevelInAtlas() const
|
|||
|
||||
void LLViewerTexture::destroyGLTexture()
|
||||
{
|
||||
if(mGLTexturep.notNull())
|
||||
if(mGLTexturep.notNull() && mGLTexturep->getHasGLTexture())
|
||||
{
|
||||
mGLTexturep->destroyGLTexture() ;
|
||||
mTextureState = DELETED ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue