diff options
Diffstat (limited to 'src/mbgl/gl/vertex_array.hpp')
-rw-r--r-- | src/mbgl/gl/vertex_array.hpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mbgl/gl/vertex_array.hpp b/src/mbgl/gl/vertex_array.hpp index 604754f672..e64174e1a5 100644 --- a/src/mbgl/gl/vertex_array.hpp +++ b/src/mbgl/gl/vertex_array.hpp @@ -1,7 +1,7 @@ #pragma once -#include <mbgl/gl/object.hpp> #include <mbgl/gl/attribute.hpp> +#include <mbgl/gl/object.hpp> #include <mbgl/gl/state.hpp> #include <mbgl/gl/value.hpp> @@ -15,8 +15,7 @@ class Context; class VertexArrayState { public: - VertexArrayState(UniqueVertexArray vertexArray_) - : vertexArray(std::move(vertexArray_)) { + VertexArrayState(UniqueVertexArray vertexArray_) : vertexArray(std::move(vertexArray_)) { } void setDirty() { @@ -35,8 +34,8 @@ public: class VertexArrayStateDeleter { public: - VertexArrayStateDeleter(bool destroy_) - : destroy(destroy_) {} + VertexArrayStateDeleter(bool destroy_) : destroy(destroy_) { + } void operator()(VertexArrayState* ptr) const { if (destroy) { @@ -52,9 +51,9 @@ using UniqueVertexArrayState = std::unique_ptr<VertexArrayState, VertexArrayStat class VertexArray { public: - VertexArray(UniqueVertexArrayState state_) - : state(std::move(state_)) { + VertexArray(UniqueVertexArrayState state_) : state(std::move(state_)) { } + VertexArray(VertexArray&& other) = default; void bind(Context&, BufferID indexBuffer, const AttributeBindingArray&); |