diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-10-19 10:07:08 -0700 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-10-19 10:10:29 -0700 |
commit | f776dbafcc6c5d836d5c2ade77ae1baaabdd9c11 (patch) | |
tree | 92578287f01ecf4b8794ecd49e813beb4b8770f4 /platform/node/src/node_map.cpp | |
parent | 5a0e263b3506cc77685f3313980ae034daea85af (diff) | |
download | qtlocation-mapboxgl-f776dbafcc6c5d836d5c2ade77ae1baaabdd9c11.tar.gz |
Revert "[node] Reuse HeadlessFrontend if any in NodeMap::cancel()"node-v3.5.8-pre.2
This reverts commit ac7b40dc9a14e48ef041b9f2e47f0b563abe64cc.
Diffstat (limited to 'platform/node/src/node_map.cpp')
-rw-r--r-- | platform/node/src/node_map.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/node/src/node_map.cpp b/platform/node/src/node_map.cpp index 198e9301f8..f344461f31 100644 --- a/platform/node/src/node_map.cpp +++ b/platform/node/src/node_map.cpp @@ -538,10 +538,7 @@ void NodeMap::cancel() { // Reset map explicitly as it resets the renderer frontend map.reset(); - if (!frontend) { - frontend = std::make_unique<mbgl::HeadlessFrontend>(mbgl::Size{ 256, 256 }, pixelRatio, *this, threadpool); - } - + frontend = std::make_unique<mbgl::HeadlessFrontend>(mbgl::Size{ 256, 256 }, pixelRatio, *this, threadpool); map = std::make_unique<mbgl::Map>(*frontend, mapObserver, frontend->getSize(), pixelRatio, *this, threadpool, mbgl::MapMode::Still); |