NORSPEC-314 fix the fullbright alpha mask logic

master
Graham Madarasz 2013-07-28 14:03:56 -07:00
parent 73703191e0
commit 0f5dbc1935
1 changed files with 5 additions and 1 deletions

View File

@ -5385,7 +5385,11 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, std::
{
bool material_pass = false;
if (fullbright)
// do NOT use 'fullbright' for this logic or you risk sending
// things without normals down the materials pipeline and will
// render poorly if not crash NORSPEC-240,314
//
if (te->getFullbright())
{
if (mat->getDiffuseAlphaMode() == LLMaterial::DIFFUSE_ALPHA_MODE_MASK)
{