From b832453c108c46d13e25f84e570ebcd09526718a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 4 Aug 2006 13:17:56 +0000 Subject: [PATCH] From Uwe Woessner, implementated by Robert Osfield, Fixed vertex attribute bug, changed _vertexAttribList[unit] -> _vertexAttribList[index] --- 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 2afd51eaa..86fd6958d 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -1015,7 +1015,7 @@ void Geometry::drawImplementation(State& state) const unsigned int index; for( index = 0; index < _vertexAttribList.size(); ++index ) { - _vertexAttribList[unit].offset = totalSize; + _vertexAttribList[index].offset = totalSize; const Array* array = _vertexAttribList[index].array.get(); const AttributeBinding ab = _vertexAttribList[index].binding; if( ab == BIND_PER_VERTEX && array )