FS-5132; only use color strider if face has colors.
parent
2fa974aa8a
commit
043beaf7ee
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue