From 8e5214144ec4f3a4fb40b7a7e4d8f09fd10dbb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 27 Feb 2017 18:33:16 +0100 Subject: [core] Ensure that a BackendScope exists when doing GL calls --- bin/render.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/render.cpp b/bin/render.cpp index d275b445d2..d4090cfa9f 100644 --- a/bin/render.cpp +++ b/bin/render.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -85,6 +86,7 @@ int main(int argc, char *argv[]) { } HeadlessBackend backend; + BackendScope scope { backend }; OffscreenView view(backend.getContext(), { width * pixelRatio, height * pixelRatio }); ThreadPool threadPool(4); Map map(backend, mbgl::Size { width, height }, pixelRatio, fileSource, threadPool, MapMode::Still); -- cgit v1.2.1