diff --git a/clients/simple-client.c b/clients/simple-client.c index 9cc37d13..23d4b00a 100644 --- a/clients/simple-client.c +++ b/clients/simple-client.c @@ -197,7 +197,8 @@ create_surface(struct window *window) window->surface = wl_compositor_create_surface(display->compositor); visual = wl_display_get_premultiplied_argb_visual(display->display); window->native = - wl_egl_window_create(window->surface, + wl_egl_window_create(display->native, + window->surface, window->geometry.width, window->geometry.height, visual); diff --git a/wayland/wayland-egl.h b/wayland/wayland-egl.h index 0cb46277..46e2e430 100644 --- a/wayland/wayland-egl.h +++ b/wayland/wayland-egl.h @@ -41,7 +41,8 @@ void wl_egl_display_destroy(struct wl_egl_display *egl_display); struct wl_egl_window * -wl_egl_window_create(struct wl_surface *surface, +wl_egl_window_create(struct wl_egl_display *egl_display, + struct wl_surface *surface, int width, int height, struct wl_visual *visual);