diff options
-rw-r--r-- | src/mbgl/renderer/sources/render_custom_geometry_source.cpp | 5 |
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; |