diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-15 20:31:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 20:31:12 +0100 |
commit | c8cfdb1ced822711e772dfcc8f708b1a7a68b5fc (patch) | |
tree | bf511253e25459cafc91a5f3bea2f5c773677162 /src/mbgl/gfx/index_vector.hpp | |
parent | 62695c56956add5560933137a479f29f2d3a091b (diff) | |
download | qtlocation-mapboxgl-c8cfdb1ced822711e772dfcc8f708b1a7a68b5fc.tar.gz |
Merge pull request #14126 from mapbox/gfx-refactor-4
Graphics refactor #4
Diffstat (limited to 'src/mbgl/gfx/index_vector.hpp')
-rw-r--r-- | src/mbgl/gfx/index_vector.hpp | 3 |
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) { |