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:
Shyotl
2014-02-19 22:35:43 -06:00
parent bdc0ad2b8f
commit 1c48aa8f97

View File

@@ -5646,8 +5646,7 @@ void LLVolumeGeometryManager::genDrawInfo(LLSpatialGroup* group, U32 mask, LLFac
while (i != end_faces)
{
facep = *i;
if ( !
(facep) || (geom_count + facep->getGeomCount() > max_vertices) || pool != facep->getPoolType() )
if ( !can_batch_texture(facep) || !(facep) || (geom_count + facep->getGeomCount() > max_vertices) || pool != facep->getPoolType() )
{ //cut batches on geom count too big
break;
}