diff --git a/.pick_status.json b/.pick_status.json index 069c76a64d0..18d11b17c15 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4344,7 +4344,7 @@ "description": "egl/wayland: ensure wl_drm is available before use", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "c60fea8c228ae3f32e20d6b65c473d9f04871d20", "notes": null diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 00d53e9b3fe..e0fe7b3ac9d 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1487,7 +1487,7 @@ create_wl_buffer(struct dri2_egl_display *dri2_dpy, ret = zwp_linux_buffer_params_v1_create_immed(params, width, height, fourcc, 0); zwp_linux_buffer_params_v1_destroy(params); - } else { + } else if (dri2_dpy->wl_drm) { struct wl_drm *wl_drm = dri2_surf ? dri2_surf->wl_drm_wrapper : dri2_dpy->wl_drm; int fd = -1, stride;