MAINT-710: Fix for VertexBufferStrider could not find valid vertex data. (from Firestorm)

meow-7.2.2
Oz Linden 2012-03-27 10:55:15 -04:00
parent 877160479b
commit 38ad8611c9
1 changed files with 1 additions and 1 deletions

View File

@ -1838,7 +1838,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
}
}
if (rebuild_color)
if (rebuild_color && mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_COLOR) )
{
LLFastTimer t(FTM_FACE_GEOM_COLOR);
mVertexBuffer->getColorStrider(colors, mGeomIndex, mGeomCount, map_range);