summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-03-27 10:55:15 -0400
committerOz Linden <oz@lindenlab.com>2012-03-27 10:55:15 -0400
commit38ad8611c988e6ca0caae95d397e3ce67f1ceb36 (patch)
tree1944ec90aa79cce4f1b4d28f1d8e982524c6a94b /indra
parent877160479bc706310c2839849cff57961ebd4709 (diff)
MAINT-710: Fix for VertexBufferStrider could not find valid vertex data. (from Firestorm)
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index cd33a19a2a..cfb4147e71 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -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);