Skip to content

Commit

Permalink
chore: update wayland-sys and libloading
Browse files Browse the repository at this point in the history
Bumps said crates to the latest versions.
  • Loading branch information
kchibisov committed Sep 25, 2023
1 parent d4e2cb0 commit 1872123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions glutin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions glutin/src/api/egl/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _,
Expand Down Expand Up @@ -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 _,
Expand Down Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit 1872123

Please sign in to comment.