diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-05-11 11:28:11 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-05-11 11:28:11 +0200 |
commit | b7b532ce28e2f7571697fb53aa33f33b7a16bd5a (patch) | |
tree | 969aa5cff09737a90962d3fa25c08e10aee318cd /src/mbgl/geometry/line_atlas.hpp | |
parent | 04c73e5ae13a1cc223e3be817d1c4220457aff25 (diff) | |
download | qtlocation-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.hpp | 2 |
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; |