Fixed fast-alpha'd textures on hud attachments not rendering as fullbright

This commit is contained in:
Shyotl
2011-04-09 19:44:27 -05:00
parent 88fe5d6979
commit db5ba95f58

View File

@@ -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);
}