Refactor wlr_egl_init to accept config_attribs

This commit is contained in:
emersion 2017-12-17 23:51:04 +01:00
parent bc5bdb7793
commit b99d1f4fcc
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
6 changed files with 36 additions and 106 deletions

View file

@ -311,8 +311,8 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
x11->screen = xcb_setup_roots_iterator(xcb_get_setup(x11->xcb_conn)).data;
if (!wlr_egl_init(&x11->egl, EGL_PLATFORM_X11_KHR,
x11->screen->root_visual, x11->xlib_conn)) {
if (!wlr_egl_init(&x11->egl, EGL_PLATFORM_X11_KHR, x11->xlib_conn, NULL,
x11->screen->root_visual)) {
goto error_event;
}