summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-12 17:32:19 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-07-19 12:30:42 +0300
commit5f38438074e5eefd5ce4ac95c1ed8f5d2216d233 (patch)
tree66f3ccc3ee3fc9187ae969b0ce71900a29d46bee
parent676c6e3c0260b6a7dc49af31fda213611fafe038 (diff)
downloadqtlocation-mapboxgl-5f38438074e5eefd5ce4ac95c1ed8f5d2216d233.tar.gz
[core][cp] Backport #15112 to oolong
Backports #15112 to release-oolong.
-rw-r--r--src/mbgl/renderer/sources/render_custom_geometry_source.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mbgl/renderer/sources/render_custom_geometry_source.cpp b/src/mbgl/renderer/sources/render_custom_geometry_source.cpp
index ee7b6e6f14..6b81658370 100644
--- a/src/mbgl/renderer/sources/render_custom_geometry_source.cpp
+++ b/src/mbgl/renderer/sources/render_custom_geometry_source.cpp
@@ -21,7 +21,10 @@ void RenderCustomGeometrySource::update(Immutable<style::Source::Impl> baseImpl_
const bool needsRendering,
const bool needsRelayout,
const TileParameters& parameters) {
- std::swap(baseImpl, baseImpl_);
+ if (baseImpl != baseImpl_) {
+ std::swap(baseImpl, baseImpl_);
+ tilePyramid.clearAll();
+ }
enabled = needsRendering;