FS-5132; only use color strider if face has colors.

Nicky 2012-02-27 22:16:13 +01:00
parent 2fa974aa8a
commit 043beaf7ee
1 changed files with 4 additions and 1 deletions

View File

@ -1840,7 +1840,10 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
}
}
if (rebuild_color)
// <FS:ND> FS-5132 Only use color strider if face has colors.
// if (rebuild_color)
if (rebuild_color && mVertexBuffer->hasDataType(LLVertexBuffer::TYPE_COLOR) )
// </FS:ND>
{
LLFastTimer t(FTM_FACE_GEOM_COLOR);
mVertexBuffer->getColorStrider(colors, mGeomIndex, mGeomCount, map_range);