[core] Ensure correct GL context in Map::onLowMemory()

This commit is contained in:
John Firebaugh
2016-11-08 16:39:30 -08:00
parent f2ba2b2dee
commit 9edda03157

View File

@@ -1015,7 +1015,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();