summaryrefslogtreecommitdiff
path: root/platform/linux
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2017-08-21 18:09:46 +0300
committerIvo van Dongen <ivovandongen@users.noreply.github.com>2017-08-30 17:18:37 +0300
commitabecfe23333f3d8ecad4e766ab350a96b70eb56e (patch)
tree3b0de3c2bf3eb9f3c8950cac9039cf7110a856be /platform/linux
parent6b9a1268a4b1d168d8407eab4df96a7ba18c4971 (diff)
downloadqtlocation-mapboxgl-abecfe23333f3d8ecad4e766ab350a96b70eb56e.tar.gz
[linux] headless display - support opengl es 2
Diffstat (limited to 'platform/linux')
-rw-r--r--platform/linux/src/headless_display_egl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux/src/headless_display_egl.cpp b/platform/linux/src/headless_display_egl.cpp
index 03c8e16a59..b746211924 100644
--- a/platform/linux/src/headless_display_egl.cpp
+++ b/platform/linux/src/headless_display_egl.cpp
@@ -32,6 +32,9 @@ HeadlessDisplay::Impl::Impl() {
}
const EGLint attribs[] = {
+#if MBGL_USE_GLES2
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
+#endif
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
EGL_NONE
};