From 0e08d7d703257d338d09f35a92ab0b07b056e4e8 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sat, 18 Nov 2017 17:33:57 -0600 Subject: [PATCH] Explicitly alphamasked faces on HUD attached prims were not going into correct drawpool. --- indra/newview/llvovolume.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index bb64accc7..c927341e2 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5086,10 +5086,15 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) } else if (force_fullbright) //Hud is done in a forward render. Fullbright cannot be shared with simple. { - if(type == LLDrawPool::POOL_ALPHA_MASK) + LLMaterial* mat = te->getMaterialParams().get(); + if (type == LLDrawPool::POOL_ALPHA_MASK || (mat && mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_MASK ) ) + { type = LLDrawPool::POOL_FULLBRIGHT_ALPHA_MASK; + } else + { type = LLDrawPool::POOL_FULLBRIGHT; + } } else if(force_simple && type != LLDrawPool::POOL_FULLBRIGHT && type != LLDrawPool::POOL_ALPHA_MASK && type != LLDrawPool::POOL_FULLBRIGHT_ALPHA_MASK) {