From db5ba95f5849779edbda70ba13666ae63fce3859 Mon Sep 17 00:00:00 2001 From: Shyotl Date: Sat, 9 Apr 2011 19:44:27 -0500 Subject: [PATCH] Fixed fast-alpha'd textures on hud attachments not rendering as fullbright --- indra/newview/llvovolume.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index ade4a343b..abbc5e9b6 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -2766,7 +2766,9 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std:: // can we safely treat this as an alpha mask? if (facep->canRenderAsMask()) { - if (te->getFullbright()) + const LLDrawable* drawablep = facep->getDrawable(); + const LLVOVolume* vobj = drawablep ? drawablep->getVOVolume() : NULL; + if (te->getFullbright() || (vobj && vobj->isHUDAttachment())) { registerFace(group, facep, LLRenderPass::PASS_FULLBRIGHT_ALPHA_MASK); }