diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-08-22 15:59:15 +0200 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-08-22 18:47:44 +0200 |
commit | 1cc1872c76de0d5f5d6c04c4b510367f9f002d97 (patch) | |
tree | 38d548c4d36d4a547a64190ce0bc194f6f845c92 /indra/llrender/llrendertarget.cpp | |
parent | 28331b2385a8de2a0fde67329127c1694e3f219f (diff) |
#2393 BugSplat Crash #1504586: LLRenderTarget::getTexture(483)
Diffstat (limited to 'indra/llrender/llrendertarget.cpp')
-rw-r--r-- | indra/llrender/llrendertarget.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index f700201ace..21a0820d32 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -475,12 +475,10 @@ void LLRenderTarget::clear(U32 mask_in) U32 LLRenderTarget::getTexture(U32 attachment) const { - if (attachment > mTex.size()-1) - { - LL_ERRS() << "Invalid attachment index." << LL_ENDL; - } - if (mTex.empty()) + if (attachment >= mTex.size()) { + LL_WARNS() << "Invalid attachment index " << attachment << " for size " << mTex.size() << LL_ENDL; + llassert(false); return 0; } return mTex[attachment]; |