diff options
author | Ansis Brammanis <ansis@mapbox.com> | 2017-11-13 14:20:04 -0500 |
---|---|---|
committer | Ansis Brammanis <ansis@mapbox.com> | 2017-11-13 14:20:04 -0500 |
commit | b9f83f45a8c0c8d7d9fc898e22b28c9e45f63031 (patch) | |
tree | d0f666d859c6db547ce91f2e3e8e7af5c7abc950 | |
parent | edc5c76f470476c4e16ed695568be017b5d094a9 (diff) | |
download | qtlocation-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.cpp | 2 |
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(), |