#2307 BugSplat Crash #1504734: LLViewerTexture::getNumFaces()

master
Alexander Gavriliuk 2024-08-15 15:56:53 +02:00 committed by Guru
parent 182f4c69c2
commit 3ca4bb6bf7
1 changed files with 1 additions and 1 deletions

View File

@ -834,7 +834,7 @@ S32 LLViewerTexture::getTotalNumFaces() const
S32 LLViewerTexture::getNumFaces(U32 ch) const
{
llassert(ch < LLRender::NUM_TEXTURE_CHANNELS);
return mNumFaces[ch];
return ch < LLRender::NUM_TEXTURE_CHANNELS ? mNumFaces[ch] : 0;
}