diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-01 12:06:29 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-03-06 16:12:51 +0100 |
commit | d5816b6db265b36cf1360dc684725b0f7427d959 (patch) | |
tree | 5f965fec52994011b0c36afdce284a0985a19ec6 /src/mbgl/gl/context.hpp | |
parent | 63e81b9aa8ad1a96e47a296db57e33c866315bee (diff) | |
download | qtlocation-mapboxgl-d5816b6db265b36cf1360dc684725b0f7427d959.tar.gz |
[core] remove unused template parameter from gl::IndexBuffer
Diffstat (limited to 'src/mbgl/gl/context.hpp')
-rw-r--r-- | src/mbgl/gl/context.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/gl/context.hpp b/src/mbgl/gl/context.hpp index f9b075406b..85e35d4d70 100644 --- a/src/mbgl/gl/context.hpp +++ b/src/mbgl/gl/context.hpp @@ -80,15 +80,15 @@ public: } template <class DrawMode> - IndexBuffer<DrawMode> createIndexBuffer(gfx::IndexVector<DrawMode>&& v, const BufferUsage usage = BufferUsage::StaticDraw) { - return IndexBuffer<DrawMode> { + IndexBuffer createIndexBuffer(gfx::IndexVector<DrawMode>&& v, const BufferUsage usage = BufferUsage::StaticDraw) { + return IndexBuffer { v.indexSize(), createIndexBuffer(v.data(), v.byteSize(), usage) }; } template <class DrawMode> - void updateIndexBuffer(IndexBuffer<DrawMode>& buffer, gfx::IndexVector<DrawMode>&& v) { + void updateIndexBuffer(IndexBuffer& buffer, gfx::IndexVector<DrawMode>&& v) { assert(v.indexSize() == buffer.indexCount); updateIndexBuffer(buffer.buffer, v.data(), v.byteSize()); } |