From 3f96639dae0476cedd5689c41d69d3d26f964b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 20 Jul 2018 12:50:52 +0200 Subject: [PATCH] GL: properly preserve Buffer target hint in Mesh::setIndexBuffer(). --- src/Magnum/GL/Mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }