diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-05-31 23:14:12 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-06-01 15:38:01 -0700 |
commit | 5ff9d6e31ba391b3630fbfc0db1ca8da486e1b9f (patch) | |
tree | 5d463062de5537feb940572faeebf9f53a76f37e /src/mbgl/gl | |
parent | 8b37a0704c7c20b1664fee3dfcc79139982a1ce7 (diff) | |
download | qtlocation-mapboxgl-5ff9d6e31ba391b3630fbfc0db1ca8da486e1b9f.tar.gz |
[core] Reuse RasterBucket for ImageSource
Diffstat (limited to 'src/mbgl/gl')
-rw-r--r-- | src/mbgl/gl/index_buffer.hpp | 1 | ||||
-rw-r--r-- | src/mbgl/gl/vertex_buffer.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/gl/index_buffer.hpp b/src/mbgl/gl/index_buffer.hpp index b3610f4154..1e57fb11f2 100644 --- a/src/mbgl/gl/index_buffer.hpp +++ b/src/mbgl/gl/index_buffer.hpp @@ -24,6 +24,7 @@ public: std::size_t byteSize() const { return v.size() * sizeof(uint16_t); } bool empty() const { return v.empty(); } + void clear() { v.clear(); } const uint16_t* data() const { return v.data(); } private: diff --git a/src/mbgl/gl/vertex_buffer.hpp b/src/mbgl/gl/vertex_buffer.hpp index c9bc01f3e8..4808803d00 100644 --- a/src/mbgl/gl/vertex_buffer.hpp +++ b/src/mbgl/gl/vertex_buffer.hpp @@ -26,6 +26,7 @@ public: std::size_t byteSize() const { return v.size() * sizeof(Vertex); } bool empty() const { return v.empty(); } + void clear() { v.clear(); } const Vertex* data() const { return v.data(); } private: |