diff options
author | Oz Linden <oz@lindenlab.com> | 2012-03-27 10:55:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-03-27 10:55:15 -0400 |
commit | 38ad8611c988e6ca0caae95d397e3ce67f1ceb36 (patch) | |
tree | 1944ec90aa79cce4f1b4d28f1d8e982524c6a94b /indra | |
parent | 877160479bc706310c2839849cff57961ebd4709 (diff) |
MAINT-710: Fix for VertexBufferStrider could not find valid vertex data. (from Firestorm)
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llface.cpp | 2 |
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); |