summaryrefslogtreecommitdiff
path: root/src/mbgl/gfx/index_vector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/gfx/index_vector.hpp')
-rw-r--r--src/mbgl/gfx/index_vector.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/gfx/index_vector.hpp b/src/mbgl/gfx/index_vector.hpp
index dc760feb90..826d43bee3 100644
--- a/src/mbgl/gfx/index_vector.hpp
+++ b/src/mbgl/gfx/index_vector.hpp
@@ -1,5 +1,6 @@
#pragma once
+#include <mbgl/gfx/draw_mode.hpp>
#include <mbgl/util/ignore.hpp>
#include <vector>
@@ -10,7 +11,7 @@ namespace gfx {
template <class DrawMode>
class IndexVector {
public:
- static constexpr std::size_t groupSize = DrawMode::bufferGroupSize;
+ static constexpr std::size_t groupSize = BufferGroupSizeOf<DrawMode>::value;
template <class... Args>
void emplace_back(Args&&... args) {