Crashunting: Refine debug aid so it only spam logs if pointer is 0. Output U8 as S32 to get numbers instead of characters.
parent
57b661bd8d
commit
70c8b89a2b
|
|
@ -4493,9 +4493,9 @@ LLViewerTexture *LLViewerObject::getTEImage(const U8 face) const
|
|||
if (face < getNumTEs())
|
||||
{
|
||||
LLViewerTexture* image = mTEImages[face];
|
||||
if( !ndIsValidPtr( image ) )
|
||||
if( !ndIsValidPtr( image ) && image != 0 )
|
||||
{
|
||||
llwarns << "mTEImages[" << face << "] = " << (void*)image << llendl;
|
||||
llwarns << "mTEImages[" << (S32)face << "] = " << (void*)image << llendl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9105,7 +9105,7 @@ BOOL LLVOAvatar::isTextureDefined(LLVOAvatarDefines::ETextureIndex te, U32 index
|
|||
// <FS:ND> getImage(te, index) can return 0 in some edge cases.
|
||||
if( !getImage( te, index ) || !ndIsValidPtr( getImage( te, index) ) )
|
||||
{
|
||||
llwarns << "getImage( " << te << ", " << index << " ) returned invalid ptr" << llendl;
|
||||
llwarns << "getImage( " << (S32)te << ", " << index << " ) returned invalid ptr" << llendl;
|
||||
return FALSE;
|
||||
}
|
||||
// </FS:ND>
|
||||
|
|
|
|||
Loading…
Reference in New Issue