Revert "only update the render order array when there are changes to tiles"

This reverts commit fd98607c5f.

Fixes #2163.
This commit is contained in:
Bruno de Oliveira Abinader
2015-08-25 11:18:31 -07:00
parent c7dfbec96e
commit 765c4695d8
4 changed files with 21 additions and 27 deletions

View File

@@ -334,7 +334,6 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame)
if (!painter) {
painter = std::make_unique<Painter>(data);
painter->setup();
painter->updateRenderOrder(*style);
}
painter->setDebug(data.getDebug());
@@ -401,10 +400,6 @@ void MapContext::setSprite(const std::string& name, std::shared_ptr<const Sprite
void MapContext::onTileDataChanged() {
assert(util::ThreadContext::currentlyOn(util::ThreadType::Map));
if (painter) {
painter->updateRenderOrder(*style);
}
updateFlags |= Update::Repaint;
asyncUpdate->send();
}