summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/egl')
-rw-r--r--src/gallium/state_trackers/egl/wayland/native_drm.c2
-rw-r--r--src/gallium/state_trackers/egl/wayland/native_shm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/egl/wayland/native_drm.c b/src/gallium/state_trackers/egl/wayland/native_drm.c
index e18a8883dbf..7a5b33affd8 100644
--- a/src/gallium/state_trackers/egl/wayland/native_drm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_drm.c
@@ -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;
diff --git a/src/gallium/state_trackers/egl/wayland/native_shm.c b/src/gallium/state_trackers/egl/wayland/native_shm.c
index 1c0799528fe..018fbe8e0ef 100644
--- a/src/gallium/state_trackers/egl/wayland/native_shm.c
+++ b/src/gallium/state_trackers/egl/wayland/native_shm.c
@@ -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;