summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-04-11 15:57:35 +0200
committerJulian Rex <julian.rex@gmail.com>2019-04-11 09:57:35 -0400
commite95bf4dd9b804d6ec13417478dd1f87e888213bb (patch)
treef3243e04427bbcb6eb8622d180c229fc68b8e239 /platform/ios/src/MGLMapView.mm
parentbd5527fea7da17bc5dd2f3611788702a2c708c09 (diff)
downloadqtlocation-mapboxgl-e95bf4dd9b804d6ec13417478dd1f87e888213bb.tar.gz
[ios] run glFlush when reducing memory and don't reduce memory while in background (#14383)
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r--platform/ios/src/MGLMapView.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 49218747ae..bbce6be961 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -831,7 +831,10 @@ public:
{
MGLAssertIsMainThread();
- _rendererFrontend->reduceMemoryUse();
+ if ( ! self.dormant)
+ {
+ _rendererFrontend->reduceMemoryUse();
+ }
}
#pragma mark - Layout -