From 1872123df08311fa3021e20a5fda78967c3afa22 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Tue, 26 Sep 2023 01:27:13 +0400 Subject: [PATCH] chore: update wayland-sys and libloading Bumps said crates to the latest versions. --- glutin/Cargo.toml | 4 ++-- glutin/src/api/egl/surface.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index ea4ba957df..646d3857ef 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -21,7 +21,7 @@ wayland = ["wayland-sys"] [dependencies] bitflags = "2.2.1" -libloading = { version = "0.7.3", optional = true } +libloading = { version = "0.8.0", optional = true } once_cell = "1.13" raw-window-handle = "0.5.0" @@ -46,7 +46,7 @@ glutin_egl_sys = { version = "0.5.1", path = "../glutin_egl_sys" } [target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))'.dependencies] glutin_egl_sys = { version = "0.5.1", path = "../glutin_egl_sys", optional = true } glutin_glx_sys = { version = "0.4.0", path = "../glutin_glx_sys", optional = true } -wayland-sys = { version = "0.30.0", default-features = false, features = ["egl", "client", "dlopen"], optional = true } +wayland-sys = { version = "0.31.1", default-features = false, features = ["egl", "client", "dlopen"], optional = true } x11-dl = { version = "2.20.0", optional = true } [target.'cfg(any(target_os = "macos"))'.dependencies] diff --git a/glutin/src/api/egl/surface.rs b/glutin/src/api/egl/surface.rs index 8541df9c2e..7bc242600a 100644 --- a/glutin/src/api/egl/surface.rs +++ b/glutin/src/api/egl/surface.rs @@ -474,7 +474,7 @@ impl NativeWindow { } let ptr = ffi_dispatch!( - WAYLAND_EGL_HANDLE, + wayland_egl_handle(), wl_egl_window_create, window_handle.surface.cast(), _width.get() as _, @@ -540,7 +540,7 @@ impl NativeWindow { if let Self::Wayland(wl_egl_surface) = self { unsafe { ffi_dispatch!( - WAYLAND_EGL_HANDLE, + wayland_egl_handle(), wl_egl_window_resize, *wl_egl_surface as _, _width.get() as _, @@ -607,7 +607,7 @@ impl Drop for NativeWindow { fn drop(&mut self) { unsafe { if let Self::Wayland(wl_egl_window) = self { - ffi_dispatch!(WAYLAND_EGL_HANDLE, wl_egl_window_destroy, wl_egl_window.cast()); + ffi_dispatch!(wayland_egl_handle(), wl_egl_window_destroy, wl_egl_window.cast()); } } }