From Uwe Woessner, implementated by Robert Osfield, Fixed vertex attribute bug, changed _vertexAttribList[unit] -> _vertexAttribList[index]

This commit is contained in:
Robert Osfield 2006-08-04 13:17:56 +00:00
parent 43e65c11b1
commit b832453c10

View File

@ -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 )