summaryrefslogtreecommitdiff
path: root/indra/newview/llspatialpartition.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-27 16:22:51 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2020-03-27 16:36:31 +0200
commit764cb898921baafb7c948451660183f39c789e0c (patch)
tree10151725748c97a3d68226491ee6ec0c1b3e0762 /indra/newview/llspatialpartition.cpp
parent33633361a37c4b25589e8a4ec34c733a206a8301 (diff)
SL-12824 Imported fix for crash
For "Face with no texture index references indexed texture draw info"
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r--indra/newview/llspatialpartition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp
index 7e6f3ef7bc..07b9d24dd2 100644
--- a/indra/newview/llspatialpartition.cpp
+++ b/indra/newview/llspatialpartition.cpp
@@ -3445,7 +3445,7 @@ public:
U8 index = facep->getTextureIndex();
if (facep->mDrawInfo)
{
- if (index < 255)
+ if (index < FACE_DO_NOT_BATCH_TEXTURES)
{
if (facep->mDrawInfo->mTextureList.size() <= index)
{