summaryrefslogtreecommitdiff
path: root/src/mbgl/gl/context.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-02-25 14:42:53 +0100
committerKonstantin Käfer <mail@kkaefer.com>2019-02-25 15:25:40 +0100
commit5416872b744628341b92046cb57efd6dffb3a377 (patch)
tree1af752e2d586cc6c0731e2789c80aae749a1a881 /src/mbgl/gl/context.hpp
parente800f3754758489e09c55e38bebd00c2203e4886 (diff)
downloadqtlocation-mapboxgl-5416872b744628341b92046cb57efd6dffb3a377.tar.gz
[core] remove DrawMode from VertexVector/Buffer
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r--src/mbgl/gl/context.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp
index 810fb41990..a10b49da48 100644
--- a/src/mbgl/gl/context.hpp
+++ b/src/mbgl/gl/context.hpp
@@ -63,16 +63,16 @@ public:
#endif
optional<std::pair<BinaryProgramFormat, std::string>> getBinaryProgram(ProgramID) const;
- template <class Vertex, class DrawMode>
- VertexBuffer<Vertex, DrawMode> createVertexBuffer(VertexVector<Vertex, DrawMode>&& v, const BufferUsage usage = BufferUsage::StaticDraw) {
- return VertexBuffer<Vertex, DrawMode> {
+ template <class Vertex>
+ VertexBuffer<Vertex> createVertexBuffer(VertexVector<Vertex>&& v, const BufferUsage usage = BufferUsage::StaticDraw) {
+ return VertexBuffer<Vertex> {
v.vertexSize(),
createVertexBuffer(v.data(), v.byteSize(), usage)
};
}
- template <class Vertex, class DrawMode>
- void updateVertexBuffer(VertexBuffer<Vertex, DrawMode>& buffer, VertexVector<Vertex, DrawMode>&& v) {
+ template <class Vertex>
+ void updateVertexBuffer(VertexBuffer<Vertex>& buffer, VertexVector<Vertex>&& v) {
assert(v.vertexSize() == buffer.vertexCount);
updateVertexBuffer(buffer.buffer, v.data(), v.byteSize());
}