diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-16 15:03:05 +0100 |
---|---|---|
committer | Jesse Bounds <jesse@rebounds.net> | 2016-11-22 08:32:02 -0800 |
commit | 8fa078c08660fd387dad9e8e323984fe059bbbc7 (patch) | |
tree | c12359b98876154b4c12cc92210f3b8ae139a576 | |
parent | 307f8e4f41a440fdfcd9c7bb1833110ab9278ccf (diff) | |
download | qtlocation-mapboxgl-8fa078c08660fd387dad9e8e323984fe059bbbc7.tar.gz |
[core] cache raster tiles
-rw-r--r-- | src/mbgl/style/source_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/source_impl.cpp b/src/mbgl/style/source_impl.cpp index b384390402..7949f26d48 100644 --- a/src/mbgl/style/source_impl.cpp +++ b/src/mbgl/style/source_impl.cpp @@ -137,7 +137,7 @@ void Source::Impl::updateTiles(const UpdateParameters& parameters) { algorithm::updateRenderables(getTileFn, createTileFn, retainTileFn, renderTileFn, idealTiles, zoomRange, tileZoom); - if (type != SourceType::Raster && type != SourceType::Annotations && cache.getSize() == 0) { + if (type != SourceType::Annotations && cache.getSize() == 0) { size_t conservativeCacheSize = ((float)parameters.transformState.getWidth() / util::tileSize) * ((float)parameters.transformState.getHeight() / util::tileSize) * |