summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/line_atlas.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-05-11 11:28:11 +0200
committerKonstantin Käfer <mail@kkaefer.com>2015-05-11 11:28:11 +0200
commitb7b532ce28e2f7571697fb53aa33f33b7a16bd5a (patch)
tree969aa5cff09737a90962d3fa25c08e10aee318cd /src/mbgl/geometry/line_atlas.hpp
parent04c73e5ae13a1cc223e3be817d1c4220457aff25 (diff)
downloadqtlocation-mapboxgl-b7b532ce28e2f7571697fb53aa33f33b7a16bd5a.tar.gz
manage atlas textures with unique_ptrs
Diffstat (limited to 'src/mbgl/geometry/line_atlas.hpp')
-rw-r--r--src/mbgl/geometry/line_atlas.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/geometry/line_atlas.hpp b/src/mbgl/geometry/line_atlas.hpp
index 1ce6f901fc..296c997f74 100644
--- a/src/mbgl/geometry/line_atlas.hpp
+++ b/src/mbgl/geometry/line_atlas.hpp
@@ -34,7 +34,7 @@ public:
private:
std::recursive_mutex mtx;
- uint8_t *const data = nullptr;
+ const std::unique_ptr<uint8_t[]> data;
std::atomic<bool> dirty;
uint32_t texture = 0;
int nextRow = 0;