diff --git a/src/wayland/dmabuf/mod.rs b/src/wayland/dmabuf/mod.rs index eb6bfa0..5fc3831 100644 --- a/src/wayland/dmabuf/mod.rs +++ b/src/wayland/dmabuf/mod.rs @@ -32,9 +32,8 @@ //! let dmabuf_global = init_dmabuf_global( //! &mut display, //! formats, -//! |buffer, _| { +//! |buffer, dispatch_data| { //! /* validate the dmabuf and import it into your renderer state */ -//! let dmabuf = buffer.as_ref().user_data().get::().expect("dmabuf global sets this for us"); //! true //! }, //! None // we don't provide a logger in this example