From 09550032b7e897755be30c6339f97489b07570ff Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 4 Nov 2018 09:23:57 +0100 Subject: render: correctly set EGL_RENDERABLE_TYPE This should be set to EGL_OPENGL_ES2_BIT. Also fixes EGL config attributes in the headless and X11 backends. --- backend/headless/backend.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'backend/headless') diff --git a/backend/headless/backend.c b/backend/headless/backend.c index cbc158f3..c0fc6022 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -103,10 +103,9 @@ struct wlr_backend *wlr_headless_backend_create(struct wl_display *display, static const EGLint config_attribs[] = { EGL_SURFACE_TYPE, EGL_PBUFFER_BIT, EGL_ALPHA_SIZE, 0, - EGL_BLUE_SIZE, 8, - EGL_GREEN_SIZE, 8, - EGL_RED_SIZE, 8, - EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, + EGL_BLUE_SIZE, 1, + EGL_GREEN_SIZE, 1, + EGL_RED_SIZE, 1, EGL_NONE, }; -- cgit v1.2.3