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

Commit

Permalink
Revert "Revert "[core][cp] Backport #15112 to mojito""
Browse files Browse the repository at this point in the history
This reverts commit 4c5343a.
  • Loading branch information
friedbunny committed Jul 19, 2019
1 parent 46e15df commit e3c60ef
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 e3c60ef

Please sign in to comment.