aboutsummaryrefslogtreecommitdiff
path: root/backend/headless
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-04-06 11:16:27 +0200
committerScott Anderson <scott@anderso.nz>2020-04-09 00:15:25 +0000
commit9acca4fc731cbdc12380ccd7efb924d846ee6646 (patch)
treeca3e652e29de4401b48950d92ed2dd5b4d1d6663 /backend/headless
parent6787ff521bc55456947180f429e4a9eca70754c6 (diff)
backend: set EGL_RENDERABLE_TYPE and EGL_SURFACE_TYPE
Ensure these are set to the correct value.
Diffstat (limited to 'backend/headless')
-rw-r--r--backend/headless/backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c
index 7b189f49..19c62078 100644
--- a/backend/headless/backend.c
+++ b/backend/headless/backend.c
@@ -101,6 +101,7 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display,
static const EGLint config_attribs[] = {
EGL_SURFACE_TYPE, EGL_PBUFFER_BIT,
+ EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_ALPHA_SIZE, 0,
EGL_BLUE_SIZE, 1,
EGL_GREEN_SIZE, 1,