summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-11-08 16:39:30 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-11-09 09:57:20 -0800
commit7ea0457e89e84c7f4a67760e8a8832890de4f9cf (patch)
tree4867abef66b9b1c4711150b96f202f6a37d95633
parent16def0311745c9887f47f1ba9b2c3f28878b8ab5 (diff)
downloadqtlocation-mapboxgl-7ea0457e89e84c7f4a67760e8a8832890de4f9cf.tar.gz
[core] Ensure correct GL context in Map::onLowMemory()
-rw-r--r--src/mbgl/map/map.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 132efc01a8..b452eddbb0 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -1012,7 +1012,9 @@ void Map::setSourceTileCacheSize(size_t size) {
void Map::onLowMemory() {
if (impl->painter) {
+ impl->backend.activate();
impl->painter->cleanup();
+ impl->backend.deactivate();
}
if (impl->style) {
impl->style->onLowMemory();