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().
dev
Kristian Høgsberg 14 years ago
parent 0bbb97bab1
commit 3eff366911
  1. 3
      clients/simple-client.c
  2. 3
      wayland/wayland-egl.h

@ -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);

@ -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);

Loading…
Cancel
Save