From 38ad8611c988e6ca0caae95d397e3ce67f1ceb36 Mon Sep 17 00:00:00 2001 From: Oz Linden Date: Tue, 27 Mar 2012 10:55:15 -0400 Subject: MAINT-710: Fix for VertexBufferStrider could not find valid vertex data. (from Firestorm) --- indra/newview/llface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview') 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); -- cgit v1.2.3