aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-02-07 20:48:01 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-02-07 20:48:01 -0500
commit3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc (patch)
tree81d3f4a1ddd1e553aaf7932805619eefb8b344fe
parentPrint object interface name when printing message arguments in debug mode (diff)
downloadwayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar.gz
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar.bz2
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar.lz
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar.xz
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.tar.zst
wayland-3eff366911eb87c1d7c4cdcceb0fd52c218bd2bc.zip
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().
-rw-r--r--clients/simple-client.c3
-rw-r--r--wayland/wayland-egl.h3
2 files changed, 4 insertions, 2 deletions
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);