From 39a732d7ae3cb1b927d94c4b1154b42d9565356a Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Tue, 13 Jun 2017 10:50:16 +0300 Subject: [android][glfw][ios][macos][node][qt] split backend from mapobserver --- platform/glfw/glfw_view.hpp | 2 +- platform/glfw/main.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/glfw') 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 +} -- cgit v1.2.1