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

This commit is contained in:
John Firebaugh
2016-11-08 16:39:30 -08:00
parent 16def03117
commit 7ea0457e89

View File

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