diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-08-15 15:56:53 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-08-15 16:56:21 +0200 |
commit | 3ca4bb6bf7ba1367e06705da3968174ff9448d7d (patch) | |
tree | a3ac13c27567f32da4330a0886446d3f7730bc4f /indra/newview | |
parent | 182f4c69c2d9c233b7ec223c3476f2e191993fad (diff) |
#2307 BugSplat Crash #1504734: LLViewerTexture::getNumFaces()
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llviewertexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 9aee1c0caf..03dca1e5f3 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -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; } |