summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/vertex_buffer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gl/vertex_buffer.hpp')
-rw-r--r--src/mbgl/gl/vertex_buffer.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/vertex_buffer.hpp b/src/mbgl/gl/vertex_buffer.hpp
index 4808803d00..3490e06e9f 100644
--- a/src/mbgl/gl/vertex_buffer.hpp
+++ b/src/mbgl/gl/vertex_buffer.hpp
@@ -16,6 +16,10 @@ public:
using Vertex = V;
static constexpr std::size_t groupSize = DrawMode::bufferGroupSize;
+ void reserve(std::size_t size) {
+ v.reserve(size);
+ }
+
template <class... Args>
void emplace_back(Args&&... args) {
static_assert(sizeof...(args) == groupSize, "wrong buffer element count");