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 --- benchmark/api/query.benchmark.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'benchmark') diff --git a/benchmark/api/query.benchmark.cpp b/benchmark/api/query.benchmark.cpp index 53a524b450..197103f060 100644 --- a/benchmark/api/query.benchmark.cpp +++ b/benchmark/api/query.benchmark.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include #include @@ -34,6 +35,7 @@ public: util::RunLoop loop; HeadlessBackend backend; + BackendScope scope { backend }; OffscreenView view{ backend.getContext(), { 1000, 1000 } }; DefaultFileSource fileSource{ "benchmark/fixtures/api/cache.db", "." }; ThreadPool threadPool{ 4 }; -- cgit v1.2.1