Fixed vertex attribute access bug

This commit is contained in:
Robert Osfield 2009-10-08 13:33:41 +00:00
parent 2f3c1d0ff8
commit 4ba7a58c85

View File

@ -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<DrawVertexAttrib> drawVertexAttribZero;
if( useVertexAttrib )