From 4ba7a58c857eca0bf1d5655195702cf20725a996 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Oct 2009 13:33:41 +0000 Subject: [PATCH] Fixed vertex attribute access bug --- src/osg/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index da522d1a0..8aeac07f4 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -1669,7 +1669,7 @@ void Geometry::drawImplementation(RenderInfo& renderInfo) const bool useVertexAttrib = _vertexAttribList.size() > 0 && _vertexAttribList[0].array.valid() && - _vertexAttribList[0].indices->getNumElements(); + _vertexAttribList[0].array->getNumElements()!=0; ref_ptr drawVertexAttribZero; if( useVertexAttrib )