From 9acca4fc731cbdc12380ccd7efb924d846ee6646 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 6 Apr 2020 11:16:27 +0200 Subject: [PATCH] backend: set EGL_RENDERABLE_TYPE and EGL_SURFACE_TYPE Ensure these are set to the correct value. --- backend/drm/renderer.c | 2 ++ backend/headless/backend.c | 1 + backend/wayland/backend.c | 1 + backend/x11/backend.c | 1 + 4 files changed, 5 insertions(+) diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 25101a4b2..8b295db11 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -25,6 +25,8 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, } static EGLint config_attribs[] = { + EGL_SURFACE_TYPE, EGL_WINDOW_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, diff --git a/backend/headless/backend.c b/backend/headless/backend.c index 7b189f496..19c620782 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, diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index e58581588..8de63acf7 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -306,6 +306,7 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display, static EGLint config_attribs[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1, diff --git a/backend/x11/backend.c b/backend/x11/backend.c index c204cfd08..6dc650ab3 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -280,6 +280,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, static EGLint config_attribs[] = { EGL_SURFACE_TYPE, EGL_WINDOW_BIT, + EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RED_SIZE, 1, EGL_GREEN_SIZE, 1, EGL_BLUE_SIZE, 1,