summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-02-17 11:17:26 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-02-20 12:04:21 -0800
commit773f330774db50ea82d2eb2e59b4250d67d7e4dc (patch)
tree4850dd799d6effe6c2aad56f758432d82f7e9216 /include/mbgl
parent535457262011f3790069c8426e7b143f3aba26d0 (diff)
downloadqtlocation-mapboxgl-773f330774db50ea82d2eb2e59b4250d67d7e4dc.tar.gz
[core] Ensure that context resources are destroyed before context is destroyed
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/map/backend.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mbgl/map/backend.hpp b/include/mbgl/map/backend.hpp
index a7c78cf03d..4a43921c0b 100644
--- a/include/mbgl/map/backend.hpp
+++ b/include/mbgl/map/backend.hpp
@@ -41,8 +41,7 @@ protected:
virtual void activate() = 0;
virtual void deactivate() = 0;
-private:
- const std::unique_ptr<gl::Context> context;
+ std::unique_ptr<gl::Context> context;
friend class BackendScope;
};