Browse Source

Merge 12a59c9b74 into f3e02008fb

pull/77/merge
Bill 12 years ago
parent
commit
e11101da83
  1. 10
      src/Magnum/Mesh.cpp

10
src/Magnum/Mesh.cpp

@ -406,7 +406,15 @@ void Mesh::attributePointerImplementationDSAEXT(const GenericAttribute& attribut
_created = true; _created = true;
glEnableVertexArrayAttribEXT(_id, attribute.location); glEnableVertexArrayAttribEXT(_id, attribute.location);
glVertexArrayVertexAttribOffsetEXT(_id, attribute.buffer->id(), attribute.location, attribute.size, attribute.type, attribute.normalized, attribute.stride, attribute.offset); glVertexArrayVertexAttribOffsetEXT(_id, attribute.buffer->id(), attribute.location, attribute.size, attribute.type, attribute.normalized, attribute.stride, attribute.offset);
if(attribute.divisor) glVertexArrayVertexAttribDivisorEXT(_id, attribute.location, attribute.divisor); if(attribute.divisor) {
if (glVertexArrayVertexAttribDivisorEXT) {
glVertexArrayVertexAttribDivisorEXT(_id, attribute.location, attribute.divisor);
}
else {
glVertexArrayVertexAttribBindingEXT(_id, attribute.location, attribute.location);
glVertexArrayVertexBindingDivisorEXT(_id, attribute.location, attribute.divisor);
}
}
} }
#endif #endif

Loading…
Cancel
Save