summaryrefslogtreecommitdiff
path: root/src/mbgl/map/source.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-11-09 13:30:59 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-11-09 11:18:10 -0800
commit7b8b2b1790863c7103067d40c690e273a8af5198 (patch)
tree831223a0b78c174b5bc22f673d8ac3b324e63b04 /src/mbgl/map/source.cpp
parent28ec908a3f1ee715d4f9e11513cce1e92fff6226 (diff)
downloadqtlocation-mapboxgl-7b8b2b1790863c7103067d40c690e273a8af5198.tar.gz
Revert "[core] only update the render order array when there are changes to tiles"
This reverts commit ec1a58d8effb3292ec46cca3fcad17218fa8c016 and 177372b83657cda9696ff68fd5cbb872b87ce324.
Diffstat (limited to 'src/mbgl/map/source.cpp')
-rw-r--r--src/mbgl/map/source.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mbgl/map/source.cpp b/src/mbgl/map/source.cpp
index 569109a998..a6fd9665bb 100644
--- a/src/mbgl/map/source.cpp
+++ b/src/mbgl/map/source.cpp
@@ -527,14 +527,9 @@ bool Source::update(MapData& data,
}
void Source::updateTilePtrs() {
- std::vector<Tile*> newPtrs;
+ tilePtrs.clear();
for (const auto& pair : tiles) {
- newPtrs.push_back(pair.second.get());
- }
-
- if (tilePtrs != newPtrs) {
- tilePtrs.swap(newPtrs);
- emitTileLoaded(true);
+ tilePtrs.push_back(pair.second.get());
}
}