From ff7fb5e46de275c8ceb4c2280edc020cff8b126e Mon Sep 17 00:00:00 2001 From: Mikhail Pozdnyakov Date: Fri, 12 Jul 2019 17:32:19 +0300 Subject: [core] RenderCustomGeometrySource should clear tiles after style update Otherwise, the remaining stale tiles cannot be updated. --- src/mbgl/renderer/sources/render_custom_geometry_source.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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; -- cgit v1.2.1