diff --git a/include/mbgl/gfx/vertex_attribute.hpp b/include/mbgl/gfx/vertex_attribute.hpp index 17c0c53e4..df7b9f334 100644 --- a/include/mbgl/gfx/vertex_attribute.hpp +++ b/include/mbgl/gfx/vertex_attribute.hpp @@ -238,8 +238,9 @@ public: const gfx::UniqueVertexBufferResource& getBuffer() const { return buffer; } void setBuffer(gfx::UniqueVertexBufferResource&& value) { buffer = std::move(value); } -protected: VertexAttribute& operator=(const VertexAttribute&) = delete; + +protected: VertexAttribute& operator=(VertexAttribute&& other) { index = other.index; dataType = other.dataType;