diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-04-11 15:57:35 +0200 |
---|---|---|
committer | Julian Rex <julian.rex@gmail.com> | 2019-04-11 09:57:35 -0400 |
commit | e95bf4dd9b804d6ec13417478dd1f87e888213bb (patch) | |
tree | f3243e04427bbcb6eb8622d180c229fc68b8e239 /platform/ios/src | |
parent | bd5527fea7da17bc5dd2f3611788702a2c708c09 (diff) | |
download | qtlocation-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')
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 5 |
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 - |