diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-07-05 18:04:15 +0300 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2017-07-18 10:45:12 +0200 |
commit | a5a0558bde5d67617b6f305179063cd4e0ac329e (patch) | |
tree | 346e4a6831ff991c5e805b1ae0616839ac9c7b62 /platform/linux | |
parent | 815ffb253b555c9a99b7d63a343745db05802c76 (diff) | |
download | qtlocation-mapboxgl-a5a0558bde5d67617b6f305179063cd4e0ac329e.tar.gz |
[test] allow only a single shared display to avoid egl errors
Diffstat (limited to 'platform/linux')
-rw-r--r-- | platform/linux/src/headless_backend_egl.cpp | 2 | ||||
-rw-r--r-- | platform/linux/src/headless_backend_glx.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux/src/headless_backend_egl.cpp b/platform/linux/src/headless_backend_egl.cpp index d98b2edc03..0784173af7 100644 --- a/platform/linux/src/headless_backend_egl.cpp +++ b/platform/linux/src/headless_backend_egl.cpp @@ -67,7 +67,7 @@ gl::ProcAddress HeadlessBackend::initializeExtension(const char* name) { bool HeadlessBackend::hasDisplay() { if (!display) { - display.reset(new HeadlessDisplay); + display = HeadlessDisplay::create(); } return bool(display); }; diff --git a/platform/linux/src/headless_backend_glx.cpp b/platform/linux/src/headless_backend_glx.cpp index eec0e7656f..0ba7f08630 100644 --- a/platform/linux/src/headless_backend_glx.cpp +++ b/platform/linux/src/headless_backend_glx.cpp @@ -50,7 +50,7 @@ gl::ProcAddress HeadlessBackend::initializeExtension(const char* name) { bool HeadlessBackend::hasDisplay() { if (!display) { - display.reset(new HeadlessDisplay); + display = HeadlessDisplay::create(); } return bool(display); }; |