diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-07-24 20:21:11 +0200 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-08-09 22:55:08 +0300 |
commit | b01b53b2fea478476e67252ff5a276f943f9ae47 (patch) | |
tree | d7a2198cd4e671ee51bf6d428c0c5cfec1664ff4 | |
parent | 048340ec1f2fd82a0fc877383d1476ec7c3c7a00 (diff) |
#2103 BugSplat Crash #1497033: LLViewerTextureList::getImage
-rw-r--r-- | indra/newview/llvovolume.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 71f3c2a3aa..2f03531f1d 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5642,7 +5642,8 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) } // HACK -- brute force this check every time a drawable gets rebuilt - for (S32 i = 0; i < drawablep->getNumFaces(); ++i) + S32 num_tex = llmin(vobj->getNumTEs(), drawablep->getNumFaces()); + for (S32 i = 0; i < num_tex; ++i) { vobj->updateTEMaterialTextures(i); } |