diff options
Diffstat (limited to 'bin/render.cpp')
-rw-r--r-- | bin/render.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/render.cpp b/bin/render.cpp index fbf32f9a40..42b6dac10b 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -5,7 +5,6 @@ #include <mbgl/util/default_styles.hpp> #include <mbgl/gl/headless_frontend.hpp> -#include <mbgl/util/default_thread_pool.hpp> #include <mbgl/storage/default_file_source.hpp> #include <mbgl/style/style.hpp> @@ -83,10 +82,9 @@ int main(int argc, char *argv[]) { fileSource.setAccessToken(std::string(token)); } - ThreadPool threadPool(4); - HeadlessFrontend frontend({ width, height }, pixelRatio, fileSource, threadPool); + HeadlessFrontend frontend({ width, height }, pixelRatio, fileSource); Map map(frontend, MapObserver::nullObserver(), frontend.getSize(), pixelRatio, - fileSource, threadPool, MapOptions().withMapMode(MapMode::Static)); + fileSource, MapOptions().withMapMode(MapMode::Static)); if (style.find("://") == std::string::npos) { style = std::string("file://") + style; |