summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-11-16 15:03:05 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-17 11:09:30 +0100
commit117062acc1f1a52e3aa3bcb542f28a070590deff (patch)
treec7f2dcee6ffaf981b8a018ad9a6d55af682faa28
parent3380f0803a62525a6884ee4d05e103e072c36117 (diff)
downloadqtlocation-mapboxgl-117062acc1f1a52e3aa3bcb542f28a070590deff.tar.gz
[core] cache raster tiles
-rw-r--r--src/mbgl/style/source_impl.cpp2
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) *