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 e18a8883dbf2556739b327e9073ec5f34a0fd72f..7a5b33affd854901dea6d54702c2f8e8181f1708 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 1c0799528fe49b3fa5f67843ae69875737f8490a..018fbe8e0efadec77381e55f4679df22711b865f 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;