summaryrefslogtreecommitdiff
path: root/test/gl/object.test.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-02-17 10:57:21 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-02-20 12:04:21 -0800
commit535457262011f3790069c8426e7b143f3aba26d0 (patch)
tree5b78cc5fc1d8215fb315952af4a0960b70e26b52 /test/gl/object.test.cpp
parented7844d08f3cffaba00cc974c4ab6b26c84dd98d (diff)
downloadqtlocation-mapboxgl-535457262011f3790069c8426e7b143f3aba26d0.tar.gz
[core] Eliminate manual HeadlessBackend activation management
Diffstat (limited to 'test/gl/object.test.cpp')
-rw-r--r--test/gl/object.test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gl/object.test.cpp b/test/gl/object.test.cpp
index f1da93f1da..85ae457081 100644
--- a/test/gl/object.test.cpp
+++ b/test/gl/object.test.cpp
@@ -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();
}