diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-16 15:03:05 +0100 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-11-21 18:08:13 +0200 |
commit | 4d988c64e92c8cdae04cf87a3eae576b5002379a (patch) | |
tree | 21ce04f69da35b55188f3411bd2917916fd1d1af | |
parent | 89ddb4548cbc4e6dd2976ef8513bf7d6b6d2ec54 (diff) | |
download | qtlocation-mapboxgl-4d988c64e92c8cdae04cf87a3eae576b5002379a.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 38080ff974..0fbd205949 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.getSize().width / util::tileSize) * ((float)parameters.transformState.getSize().height / util::tileSize) * |