From 126582e0f6b3cf568664db6f3bc771084fa4a90b Mon Sep 17 00:00:00 2001 From: Beq Date: Sat, 16 Apr 2022 01:36:05 +0100 Subject: [PATCH] don't render invisible stuff. --- indra/newview/llvovolume.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 63ab827303..8fa0913702 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -6586,6 +6586,14 @@ U32 LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFace LLFace* facep = *face_iter; LLViewerTexture* tex = facep->getTexture(); const LLTextureEntry* te = facep->getTextureEntry(); + // Don't batch fully transparent faces + if (te && ( te->getAlpha() == 0.f ) && ( te->getGlow() == 0.0 ) && !LLDrawPoolAlpha::sShowDebugAlpha) + { + facep->setSize(0,0); + ++face_iter; + continue; + } + // LLMaterialPtr mat = te->getMaterialParams(); LLMaterialID matId = te->getMaterialID();