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:
committed by
Latif Khalifa
parent
201647e1cf
commit
2d6bc052ab
@@ -5029,7 +5029,7 @@ void LLVOAvatar::updateTextures()
|
|||||||
|
|
||||||
|
|
||||||
void LLVOAvatar::addLocalTextureStats( ETextureIndex idx, LLViewerFetchedTexture* imagep,
|
void LLVOAvatar::addLocalTextureStats( ETextureIndex idx, 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)
|
||||||
{
|
{
|
||||||
// No local texture stats for non-self avatars
|
// No local texture stats for non-self avatars
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -578,7 +578,7 @@ protected:
|
|||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
protected:
|
protected:
|
||||||
virtual void setLocalTexture(LLAvatarAppearanceDefines::ETextureIndex type, LLViewerTexture* tex, BOOL baked_version_exits, U32 index = 0);
|
virtual void setLocalTexture(LLAvatarAppearanceDefines::ETextureIndex type, LLViewerTexture* tex, BOOL baked_version_exits, U32 index = 0);
|
||||||
virtual void addLocalTextureStats(LLAvatarAppearanceDefines::ETextureIndex type, LLViewerFetchedTexture* imagep, F32 texel_area_ratio, BOOL rendered, BOOL covered_by_baked, U32 index = 0);
|
virtual void addLocalTextureStats(LLAvatarAppearanceDefines::ETextureIndex type, LLViewerFetchedTexture* imagep, F32 texel_area_ratio, BOOL rendered, BOOL covered_by_baked);
|
||||||
// MULTI-WEARABLE: make self-only?
|
// MULTI-WEARABLE: make self-only?
|
||||||
virtual void setBakedReady(LLAvatarAppearanceDefines::ETextureIndex type, BOOL baked_version_exists, U32 index = 0);
|
virtual void setBakedReady(LLAvatarAppearanceDefines::ETextureIndex type, BOOL baked_version_exists, U32 index = 0);
|
||||||
|
|
||||||
|
|||||||
@@ -2618,7 +2618,7 @@ BOOL LLVOAvatarSelf::canGrabBakedTexture(EBakedTextureIndex baked_index) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void LLVOAvatarSelf::addLocalTextureStats( ETextureIndex type, LLViewerFetchedTexture* imagep,
|
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;
|
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
|
// not restore this without some more targetted fix for the local
|
||||||
// textures failing to load issue.
|
// textures failing to load issue.
|
||||||
//if (!covered_by_baked)
|
//if (!covered_by_baked)
|
||||||
if (getLocalTextureID(type, index) != IMG_DEFAULT_AVATAR)
|
if (imagep->getID() != IMG_DEFAULT_AVATAR)
|
||||||
{
|
{
|
||||||
imagep->setNoDelete();
|
imagep->setNoDelete();
|
||||||
if (imagep->getDiscardLevel() != 0)
|
if (imagep->getDiscardLevel() != 0)
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ protected:
|
|||||||
/*virtual*/ void setBakedReady(LLAvatarAppearanceDefines::ETextureIndex type, BOOL baked_version_exists, U32 index);
|
/*virtual*/ void setBakedReady(LLAvatarAppearanceDefines::ETextureIndex type, BOOL baked_version_exists, U32 index);
|
||||||
void localTextureLoaded(BOOL succcess, LLViewerFetchedTexture *src_vi, LLImageRaw* src, LLImageRaw* aux_src, S32 discard_level, BOOL final, void* userdata);
|
void localTextureLoaded(BOOL succcess, LLViewerFetchedTexture *src_vi, LLImageRaw* src, LLImageRaw* aux_src, S32 discard_level, BOOL final, void* userdata);
|
||||||
void getLocalTextureByteCount(S32* gl_byte_count) const;
|
void getLocalTextureByteCount(S32* gl_byte_count) const;
|
||||||
/*virtual*/ void addLocalTextureStats(LLAvatarAppearanceDefines::ETextureIndex i, LLViewerFetchedTexture* imagep, F32 texel_area_ratio, BOOL rendered, BOOL covered_by_baked, U32 index);
|
/*virtual*/ void addLocalTextureStats(LLAvatarAppearanceDefines::ETextureIndex i, LLViewerFetchedTexture* imagep, F32 texel_area_ratio, BOOL rendered, BOOL covered_by_baked);
|
||||||
LLLocalTextureObject* getLocalTextureObject(LLAvatarAppearanceDefines::ETextureIndex i, U32 index) const;
|
LLLocalTextureObject* getLocalTextureObject(LLAvatarAppearanceDefines::ETextureIndex i, U32 index) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user