Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core][cp] Backport #15112 to mojito
Browse files Browse the repository at this point in the history
Backports #15112 to release-mojito.
  • Loading branch information
pozdnyakov committed Jul 19, 2019
1 parent 1811f60 commit e49370c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mbgl/renderer/sources/render_custom_geometry_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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;

Expand Down

0 comments on commit e49370c

Please sign in to comment.