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.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mbgl/gl/vertex_buffer.hpp b/src/mbgl/gl/vertex_buffer.hpp
index 9f8b156b25..29eba2e979 100644
--- a/src/mbgl/gl/vertex_buffer.hpp
+++ b/src/mbgl/gl/vertex_buffer.hpp
@@ -10,15 +10,14 @@
namespace mbgl {
namespace gl {
-template <class V, class DrawMode = Indexed>
+template <class V>
class VertexVector {
public:
using Vertex = V;
- static constexpr std::size_t groupSize = DrawMode::bufferGroupSize;
template <class... Args>
void emplace_back(Args&&... args) {
- static_assert(sizeof...(args) == groupSize, "wrong buffer element count");
+ static_assert(sizeof...(args) == 1, "wrong buffer element count");
util::ignore({(v.emplace_back(std::forward<Args>(args)), 0)...});
}
@@ -34,7 +33,7 @@ private:
std::vector<Vertex> v;
};
-template <class V, class DrawMode = Indexed>
+template <class V>
class VertexBuffer {
public:
using Vertex = V;