[core] RenderCustomGeometrySource should clear tiles after style update

Otherwise, the remaining stale tiles cannot be updated.
This commit is contained in:
Mikhail Pozdnyakov
2019-07-12 17:32:19 +03:00
parent 5b488225fb
commit ff7fb5e46d

View File

@@ -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;