summaryrefslogtreecommitdiff
path: root/bin/glfw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/glfw.cpp')
-rw-r--r--bin/glfw.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/glfw.cpp b/bin/glfw.cpp
index 44713d7532..b51846b4e8 100644
--- a/bin/glfw.cpp
+++ b/bin/glfw.cpp
@@ -13,6 +13,7 @@
#include <sstream>
#include <cstdlib>
#include <cstdio>
+#include <array>
namespace {
@@ -119,7 +120,9 @@ int main(int argc, char *argv[]) {
mbgl::ThreadPool threadPool(4);
- mbgl::Map map(backend, backend, backend.getPixelRatio(), fileSource, threadPool);
+ mbgl::Map map(backend, view->getSize(), view->getPixelRatio(), fileSource, threadPool);
+
+ backend.setMap(&map);
// Load settings
mbgl::Settings_JSON settings;