[test] Use shared headless display

Prevents some OpenGL implementations from bailing out.
This commit is contained in:
Bruno de Oliveira Abinader
2016-11-10 12:36:53 +02:00
parent 5479b75c9f
commit 50f0f919c3
12 changed files with 37 additions and 20 deletions

View File

@@ -23,8 +23,8 @@ std::shared_ptr<SpriteImage> namedMarker(const std::string &name) {
class AnnotationTest {
public:
util::RunLoop loop;
HeadlessBackend backend;
OffscreenView view{ backend.getContext() };
HeadlessBackend backend { test::sharedDisplay() };
OffscreenView view { backend.getContext() };
StubFileSource fileSource;
ThreadPool threadPool { 4 };
Map map { backend, view.size, 1, fileSource, threadPool, MapMode::Still };