summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-09-14 17:04:33 -0500
committerDave Parks <davep@lindenlab.com>2022-09-14 17:04:33 -0500
commita0a87db3d76bc78e245e89254db190ba68b3709e (patch)
tree82c779c6043f04650ddf06aa6298ec8e2fd89281
parent2ce39f3ad98fe855fb126dc29c82145751434421 (diff)
SL-17701 Fix for PBR alpha trying to use indexed texture batching
-rw-r--r--indra/newview/llvovolume.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index a02c18d99f..61589640fe 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -5243,6 +5243,11 @@ bool can_batch_texture(LLFace* facep)
return false;
}
+ if (facep->getTextureEntry()->getGLTFMaterial() != nullptr)
+ { // PBR materials break indexed texture batching
+ return false;
+ }
+
return true;
}