diff --git a/src/Magnum/GL/Mesh.cpp b/src/Magnum/GL/Mesh.cpp index a09e85ac8..ecff9dd94 100644 --- a/src/Magnum/GL/Mesh.cpp +++ b/src/Magnum/GL/Mesh.cpp @@ -355,7 +355,7 @@ Mesh& Mesh::setIndexBuffer(Buffer&& buffer, GLintptr offset, MeshIndexType type, } Mesh& Mesh::setIndexBuffer(Buffer& buffer, const GLintptr offset, const MeshIndexType type, const UnsignedInt start, const UnsignedInt end) { - setIndexBuffer(Buffer::wrap(buffer.id()), offset, type, start, end); + setIndexBuffer(Buffer::wrap(buffer.id(), buffer.targetHint()), offset, type, start, end); return *this; }