diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-16 15:03:05 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-11-17 11:09:30 +0100 |
commit | 117062acc1f1a52e3aa3bcb542f28a070590deff (patch) | |
tree | c7f2dcee6ffaf981b8a018ad9a6d55af682faa28 /src/mbgl/style | |
parent | 3380f0803a62525a6884ee4d05e103e072c36117 (diff) | |
download | qtlocation-mapboxgl-117062acc1f1a52e3aa3bcb542f28a070590deff.tar.gz |
[core] cache raster tiles
Diffstat (limited to 'src/mbgl/style')
-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 d31a6bf5a4..a1b495627c 100644 --- a/src/mbgl/style/source_impl.cpp +++ b/src/mbgl/style/source_impl.cpp @@ -139,7 +139,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) * |