From Uwe Woessner, implementated by Robert Osfield, Fixed vertex attribute bug, changed _vertexAttribList[unit] -> _vertexAttribList[index]
This commit is contained in:
parent
43e65c11b1
commit
b832453c10
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user