diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index a889cd963745394fe431e441df4386b6d374e943..90ba21ef3469df3c193efd1b2fe5706d1daa4410 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -1147,7 +1147,7 @@ S32  LLViewerTexture::getDiscardLevelInAtlas() const
 
 void LLViewerTexture::destroyGLTexture() 
 {
-	if(mGLTexturep.notNull())
+	if(mGLTexturep.notNull() && mGLTexturep->getHasGLTexture())
 	{
 		mGLTexturep->destroyGLTexture() ;
 		mTextureState = DELETED ;