OSDN Git Service

st/egl: track server side wayland changes
authorChia-I Wu <olv@lunarg.com>
Wed, 7 Sep 2011 13:42:56 +0000 (21:42 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 7 Sep 2011 17:23:51 +0000 (01:23 +0800)
Follow changes in c661ecce1089000c3fca9a543713f8264221be50.

src/gallium/state_trackers/egl/wayland/native_drm.c
src/gallium/state_trackers/egl/wayland/native_shm.c

index e18a888..7a5b33a 100644 (file)
@@ -169,7 +169,7 @@ wayland_drm_display_init_screen(struct native_display *ndpy)
    if (id == 0)
       return FALSE;
 
-   drmdpy->wl_drm = wl_drm_create(drmdpy->base.dpy, id, 1);
+   drmdpy->wl_drm = wl_display_bind(drmdpy->base.dpy, id, &wl_drm_interface);
    if (!drmdpy->wl_drm)
       return FALSE;
 
index 1c07995..018fbe8 100644 (file)
@@ -123,7 +123,7 @@ wayland_shm_display_init_screen(struct native_display *ndpy)
    if (id == 0)
       return FALSE;
 
-   shmdpy->wl_shm = wl_shm_create(shmdpy->base.dpy, id, 1);
+   shmdpy->wl_shm = wl_display_bind(shmdpy->base.dpy, id, &wl_shm_interface);
    if (!shmdpy->wl_shm)
       return FALSE;