From: Kristian Høgsberg Date: Tue, 8 Feb 2011 01:48:01 +0000 (-0500) Subject: Add struct wl_egl_display argument to wl_egl_window_create X-Git-Tag: 0.85.0~186 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc;p=profile%2Fivi%2Fwayland.git Add struct wl_egl_display argument to wl_egl_window_create We don't need it in the mesa implementation, but other implementations might and it's symmetric with wl_egl_pixmap_create(). --- diff --git a/clients/simple-client.c b/clients/simple-client.c index 9cc37d1..23d4b00 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 0cb4627..46e2e43 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);