Skip to content
Snippets Groups Projects
Commit c0855030 authored by Merov Linden's avatar Merov Linden
Browse files

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

parent 3f31c82a
Branches
Tags
No related merge requests found
...@@ -1147,7 +1147,7 @@ S32 LLViewerTexture::getDiscardLevelInAtlas() const ...@@ -1147,7 +1147,7 @@ S32 LLViewerTexture::getDiscardLevelInAtlas() const
void LLViewerTexture::destroyGLTexture() void LLViewerTexture::destroyGLTexture()
{ {
if(mGLTexturep.notNull()) if(mGLTexturep.notNull() && mGLTexturep->getHasGLTexture())
{ {
mGLTexturep->destroyGLTexture() ; mGLTexturep->destroyGLTexture() ;
mTextureState = DELETED ; mTextureState = DELETED ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment