[core] Ensure that a BackendScope exists when doing GL calls
This commit is contained in:
committed by
John Firebaugh
parent
d7227e13a7
commit
8e5214144e
@@ -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);
|
||||
}};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user