Add struct wl_egl_display argument to wl_egl_window_create
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 8 Feb 2011 01:48:01 +0000 (20:48 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 8 Feb 2011 01:48:01 +0000 (20:48 -0500)
We don't need it in the mesa implementation, but other implementations
might and it's symmetric with wl_egl_pixmap_create().

clients/simple-client.c
wayland/wayland-egl.h

index 9cc37d1..23d4b00 100644 (file)
@@ -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);
index 0cb4627..46e2e43 100644 (file)
@@ -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);