Make texture fetch type (mFTType) a const member variable and remove from init() call. forceRefetch was clobbering mFFType via init call and firstinit boolean is a stupid hack.
This commit is contained in:
@@ -617,12 +617,12 @@ void LLViewerTextureList::addImageToList(LLViewerFetchedTexture *image)
|
||||
}
|
||||
else
|
||||
{
|
||||
if((mImageList.insert(image)).second != true)
|
||||
{
|
||||
LL_WARNS() << "Error happens when insert image " << image->getID() << " into mImageList!" << LL_ENDL ;
|
||||
if((mImageList.insert(image)).second != true)
|
||||
{
|
||||
LL_WARNS() << "Error happens when insert image " << image->getID() << " into mImageList!" << LL_ENDL ;
|
||||
}
|
||||
image->setInImageList(TRUE) ;
|
||||
}
|
||||
image->setInImageList(TRUE) ;
|
||||
}
|
||||
}
|
||||
|
||||
void LLViewerTextureList::removeImageFromList(LLViewerFetchedTexture *image)
|
||||
|
||||
Reference in New Issue
Block a user