summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2022-05-24 18:34:52 +0000
committerDave Parks <davep@lindenlab.com>2022-05-24 18:34:52 +0000
commit9f9465f5bd2160f0245805e32644ce37f8c6cca6 (patch)
tree311d04d5aca4a4ab6d0660a6bd5af2fb7bd5e45b /indra/newview/pipeline.cpp
parentc0aa1a1202678fdde0206c9372fb071c028cfe5b (diff)
parent3365a39080744af0566adb7b6efd8e53fc6b3339 (diff)
Merged DRTVWR-563 into SL-17219
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index e142a40f1d..9ec3418132 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -3899,7 +3899,11 @@ void LLPipeline::postSort(LLCamera& camera)
if (!sShadowRender)
{
+ // order alpha groups by distance
std::sort(sCull->beginAlphaGroups(), sCull->endAlphaGroups(), LLSpatialGroup::CompareDepthGreater());
+
+ // order rigged alpha groups by avatar attachment order
+ std::sort(sCull->beginRiggedAlphaGroups(), sCull->endRiggedAlphaGroups(), LLSpatialGroup::CompareRenderOrder());
}
LL_PUSH_CALLSTACKS();