diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-10-10 17:16:37 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-10-25 13:52:36 -0700 |
commit | a4d259c33f9bb890bba97fd89552720e3e0ec09b (patch) | |
tree | 342ecc27a6993c48f3a2e1d739fce890350bc44d /bin/glfw.cpp | |
parent | 5cc390d694fc7510d445310d8eb9e32429a5e67b (diff) | |
download | qtlocation-mapboxgl-a4d259c33f9bb890bba97fd89552720e3e0ec09b.tar.gz |
[core] move gl::Context to Backend and refactor View
Diffstat (limited to 'bin/glfw.cpp')
-rw-r--r-- | bin/glfw.cpp | 5 |
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; |