diff options
author | Dane Springmeyer <dane@mapbox.com> | 2020-03-05 16:32:01 -0800 |
---|---|---|
committer | Dane Springmeyer <dane@mapbox.com> | 2020-03-05 16:32:01 -0800 |
commit | 081b61399ac3c81914faa17c35f7a3fe5a97bc8d (patch) | |
tree | 8b8c124a684bccb21d94cebb1bf26d8ee7e74ee8 | |
parent | c9c03b092b305e54a8808d149f05ff8f11692c21 (diff) | |
download | qtlocation-mapboxgl-081b61399ac3c81914faa17c35f7a3fe5a97bc8d.tar.gz |
clear whole tile pyramid when reducing memoryupstream/clear-tile-cache
-rw-r--r-- | src/mbgl/renderer/sources/render_tile_source.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/renderer/sources/render_tile_source.cpp b/src/mbgl/renderer/sources/render_tile_source.cpp index 221f976c50..d881e85d16 100644 --- a/src/mbgl/renderer/sources/render_tile_source.cpp +++ b/src/mbgl/renderer/sources/render_tile_source.cpp @@ -152,6 +152,7 @@ void RenderTileSource::removeFeatureState(const optional<std::string>& sourceLay void RenderTileSource::reduceMemoryUse() { tilePyramid.reduceMemoryUse(); + tilePyramid.clearAll(); } void RenderTileSource::dumpDebugLogs() const { |