SUN-57 SH-4039 FIX bake fail on non-ssb regions

We were getting the texture ID from the type,index couple, but were not
passing in index, which defaulted to 0. texture ID is available from the
texture object itself, so using that and removing the index parameter
to prevent future confusion.

Conflicts:

	indra/newview/llvoavatarself.cpp
This commit is contained in:
Nyx Linden
2013-03-29 18:05:36 -04:00
committed by Latif Khalifa
parent 201647e1cf
commit 2d6bc052ab
4 changed files with 5 additions and 5 deletions

View File

@@ -2618,7 +2618,7 @@ BOOL LLVOAvatarSelf::canGrabBakedTexture(EBakedTextureIndex baked_index) const
}
void LLVOAvatarSelf::addLocalTextureStats( ETextureIndex type, LLViewerFetchedTexture* imagep,
F32 texel_area_ratio, BOOL render_avatar, BOOL covered_by_baked, U32 index )
F32 texel_area_ratio, BOOL render_avatar, BOOL covered_by_baked)
{
if (!isIndexLocalTexture(type)) return;
@@ -2627,7 +2627,7 @@ void LLVOAvatarSelf::addLocalTextureStats( ETextureIndex type, LLViewerFetchedTe
// not restore this without some more targetted fix for the local
// textures failing to load issue.
//if (!covered_by_baked)
if (getLocalTextureID(type, index) != IMG_DEFAULT_AVATAR)
if (imagep->getID() != IMG_DEFAULT_AVATAR)
{
imagep->setNoDelete();
if (imagep->getDiscardLevel() != 0)