summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis@mapbox.com>2017-11-13 14:20:04 -0500
committerAnsis Brammanis <ansis@mapbox.com>2017-11-13 14:20:04 -0500
commitb9f83f45a8c0c8d7d9fc898e22b28c9e45f63031 (patch)
treed0f666d859c6db547ce91f2e3e8e7af5c7abc950
parentedc5c76f470476c4e16ed695568be017b5d094a9 (diff)
downloadqtlocation-mapboxgl-upstream/viewport-collision-sort-z.tar.gz
sort child symbol tiles before parent symbol tilesupstream/viewport-collision-sort-z
-rw-r--r--src/mbgl/renderer/renderer_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/renderer/renderer_impl.cpp b/src/mbgl/renderer/renderer_impl.cpp
index 854e1be1e3..7ad4addcb4 100644
--- a/src/mbgl/renderer/renderer_impl.cpp
+++ b/src/mbgl/renderer/renderer_impl.cpp
@@ -336,7 +336,7 @@ void Renderer::Impl::render(const UpdateParameters& updateParameters) {
auto par = util::rotate(pa, parameters.state.getAngle());
auto pbr = util::rotate(pb, parameters.state.getAngle());
- return std::tie(par.y, par.x) < std::tie(pbr.y, pbr.x);
+ return std::tie(b.id.canonical.z, par.y, par.x) < std::tie(a.id.canonical.z, pbr.y, pbr.x);
});
} else {
std::sort(sortedTiles.begin(), sortedTiles.end(),