diff options
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.hpp | 2 | ||||
-rw-r--r-- | platform/glfw/main.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/glfw/glfw_view.hpp b/platform/glfw/glfw_view.hpp index 366fe4fd68..3b0c31009c 100644 --- a/platform/glfw/glfw_view.hpp +++ b/platform/glfw/glfw_view.hpp @@ -9,7 +9,7 @@ struct GLFWwindow; -class GLFWView : public mbgl::View, public mbgl::Backend { +class GLFWView : public mbgl::View, public mbgl::Backend, public mbgl::MapObserver { public: GLFWView(bool fullscreen = false, bool benchmark = false); ~GLFWView() override; diff --git a/platform/glfw/main.cpp b/platform/glfw/main.cpp index 7192475835..0cd9543f9c 100644 --- a/platform/glfw/main.cpp +++ b/platform/glfw/main.cpp @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) { mbgl::ThreadPool threadPool(4); - mbgl::Map map(backend, view->getSize(), view->getPixelRatio(), fileSource, threadPool); + mbgl::Map map(backend, backend, view->getSize(), view->getPixelRatio(), fileSource, threadPool); backend.setMap(&map); @@ -200,4 +200,4 @@ int main(int argc, char *argv[]) { view = nullptr; return 0; -}
\ No newline at end of file +} |