Added missing can_batch_texture check. Fixes unbatchable faces occasionally getting batched with the last batchable face batch. This was mostly noticeable with animated faces.
This commit is contained in:
@@ -5646,8 +5646,7 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFac
|
|||||||
while (i != end_faces)
|
while (i != end_faces)
|
||||||
{
|
{
|
||||||
facep = *i;
|
facep = *i;
|
||||||
if ( !
|
if ( !can_batch_texture(facep) || !(facep) || (geom_count + facep->getGeomCount() > max_vertices) || pool != facep->getPoolType() )
|
||||||
(facep) || (geom_count + facep->getGeomCount() > max_vertices) || pool != facep->getPoolType() )
|
|
||||||
{ //cut batches on geom count too big
|
{ //cut batches on geom count too big
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user