Try to plug the profile icon memory hole
parent
a5ac0e850a
commit
e46ba2a706
|
|
@ -130,6 +130,13 @@ void LLGLTexture::setActive()
|
|||
{
|
||||
mTextureState = ACTIVE ;
|
||||
}
|
||||
|
||||
// <FS:Ansariel> Try to plug the profile icon memory hole
|
||||
if (mBoostLevel == BOOST_ICON)
|
||||
{
|
||||
setNoDelete();
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
|
||||
//set the texture to stay in memory
|
||||
|
|
|
|||
|
|
@ -1266,7 +1266,10 @@ void LLViewerFetchedTexture::setDeletionCandidate()
|
|||
//set the texture inactive
|
||||
void LLViewerFetchedTexture::setInactive()
|
||||
{
|
||||
if(mTextureState == ACTIVE && mGLTexturep.notNull() && mGLTexturep->getTexName() && !mGLTexturep->getBoundRecently())
|
||||
// <FS:Ansariel> Try to plug the profile icon memory hole
|
||||
//if(mTextureState == ACTIVE && mGLTexturep.notNull() && mGLTexturep->getTexName() && !mGLTexturep->getBoundRecently())
|
||||
if((mTextureState == ACTIVE || (mTextureState == NO_DELETE && mBoostLevel == BOOST_ICON)) && mGLTexturep.notNull() && mGLTexturep->getTexName() && !mGLTexturep->getBoundRecently())
|
||||
// </FS:Ansariel>
|
||||
{
|
||||
mTextureState = INACTIVE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue