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 --- test/map/map.test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/map') diff --git a/test/map/map.test.cpp b/test/map/map.test.cpp index 2d995fc599..c5017aeb04 100644 --- a/test/map/map.test.cpp +++ b/test/map/map.test.cpp @@ -47,6 +47,7 @@ public: struct MapTest { util::RunLoop runLoop; BackendTest backend; + BackendScope scope { backend }; OffscreenView view { backend.getContext() }; StubFileSource fileSource; ThreadPool threadPool { 4 }; @@ -552,6 +553,7 @@ public: TEST(Map, TEST_DISABLED_ON_CI(ContinuousRendering)) { util::RunLoop runLoop; MockBackend backend { test::sharedDisplay() }; + BackendScope scope { backend }; OffscreenView view { backend.getContext() }; ThreadPool threadPool { 4 }; @@ -585,7 +587,7 @@ TEST(Map, TEST_DISABLED_ON_CI(ContinuousRendering)) { }); } - BackendScope scope(backend); + BackendScope scope2(backend); map.render(view); }}; -- cgit v1.2.1