[core] Eliminate manual HeadlessBackend activation management
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <mbgl/test/util.hpp>
|
||||
|
||||
#include <mbgl/map/backend_scope.hpp>
|
||||
#include <mbgl/gl/headless_backend.hpp>
|
||||
#include <mbgl/gl/offscreen_view.hpp>
|
||||
|
||||
@@ -62,6 +63,7 @@ TEST(GLObject, Value) {
|
||||
TEST(GLObject, Store) {
|
||||
HeadlessBackend backend { test::sharedDisplay() };
|
||||
OffscreenView view(backend.getContext());
|
||||
BackendScope scope { backend };
|
||||
|
||||
gl::Context context;
|
||||
EXPECT_TRUE(context.empty());
|
||||
@@ -77,6 +79,4 @@ TEST(GLObject, Store) {
|
||||
|
||||
context.reset();
|
||||
EXPECT_TRUE(context.empty());
|
||||
|
||||
backend.deactivate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user