summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-07-24 20:21:11 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2024-07-29 18:42:26 +0200
commit7a4249937db591d146d8c91f2a85c5c721543f19 (patch)
treeebaeb7d6d88a85526d14d58135b6b108a73fa3a7 /indra/newview/llvovolume.cpp
parent4a0973a5b63cf46381f48f66f86965d245860feb (diff)
#2103 BugSplat Crash #1497033: LLViewerTextureList::getImage
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 2630aaf43e..9ebe648680 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -5646,7 +5646,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);
}