diff options
author | Jesse Bounds <jesse@rebounds.net> | 2016-11-09 10:43:25 -0800 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-11-09 10:43:25 -0800 |
commit | 8a84f3b279b9049b56d163c255781fbea21f6fac (patch) | |
tree | 8e98a9cacc75acada12ed04d97f906d53c1e11e6 | |
parent | 8bf63ddb9c271f909d699e06e70816a6c7af7ebf (diff) | |
download | qtlocation-mapboxgl-8a84f3b279b9049b56d163c255781fbea21f6fac.tar.gz |
[core] Back port changes for correct GL context in Map::onLowMemory()
This ports changes in
https://github.com/mapbox/mapbox-gl-native/pull/6972 to this version
of the map.
-rw-r--r-- | src/mbgl/map/map.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 24c39fe243..6b9c4b4d5b 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -833,7 +833,9 @@ void Map::setSourceTileCacheSize(size_t size) { } void Map::onLowMemory() { + impl->view.activate(); impl->store.performCleanup(); + impl->view.deactivate(); if (!impl->style) return; impl->style->onLowMemory(); impl->view.invalidate(); |