diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-19 16:23:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-19 21:11:01 +0100 |
commit | de896caceb9f6354a99c9435c3a429ff52b6ca4a (patch) | |
tree | 1f633cebc2a49dd76268540cf3584ae4b43dc5e8 | |
parent | 6c08fe979615ac88648eb91c87ea4c41fa1d7bdf (diff) |
backend/wayland: remove EGL config
We don't use EGLSurface anymore, so we don't need to choose an EGL
config anymore.
-rw-r--r-- | backend/wayland/backend.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c index 5b8bce9b..8e77133d 100644 --- a/backend/wayland/backend.c +++ b/backend/wayland/backend.c @@ -309,22 +309,12 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display, } wl_event_source_check(wl->remote_display_src); - 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, - EGL_ALPHA_SIZE, 1, - EGL_NONE, - }; - if (!create_renderer_func) { create_renderer_func = wlr_renderer_autocreate; } wl->renderer = create_renderer_func(&wl->egl, EGL_PLATFORM_WAYLAND_EXT, - wl->remote_display, config_attribs, 0); + wl->remote_display, NULL, 0); if (!wl->renderer) { wlr_log(WLR_ERROR, "Could not create renderer"); goto error_event; |