From 8a84f3b279b9049b56d163c255781fbea21f6fac Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Wed, 9 Nov 2016 10:43:25 -0800 Subject: [PATCH] [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. --- src/mbgl/map/map.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 24c39fe24..6b9c4b4d5 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();