0.30: update to alpha9

This commit is contained in:
i509VCB 2022-04-05 00:10:08 -05:00 committed by Victoria Brekenfeld
parent 58b515746b
commit 8bef81412b
2 changed files with 10 additions and 6 deletions

View file

@ -43,11 +43,11 @@ slog-stdlog = { version = "4", optional = true }
tempfile = { version = "3.0", optional = true }
thiserror = "1.0.25"
udev = { version = "0.6", optional = true }
wayland-egl = { version = "0.30.0-alpha8", optional = true }
wayland-protocols = { version = "0.30.0-alpha8", features = ["unstable_protocols", "server"], optional = true }
wayland-server = { version = "0.30.0-alpha8", optional = true }
wayland-sys = { version = "0.30.0-alpha8", optional = true }
wayland-backend = { version = "0.1.0-alpha8", optional = true }
wayland-egl = { version = "0.30.0-alpha9", optional = true }
wayland-protocols = { version = "0.30.0-alpha9", features = ["unstable_protocols", "server"], optional = true }
wayland-server = { version = "0.30.0-alpha9", optional = true }
wayland-sys = { version = "0.30.0-alpha9", optional = true }
wayland-backend = { version = "0.1.0-alpha9", optional = true }
winit = { version = "0.26", optional = true }
x11rb = { version = "0.9.0", optional = true }
xkbcommon = "0.4.0"

View file

@ -56,6 +56,9 @@ pub enum Error {
/// Failed to initialize a window
#[error("Failed to initialize a window")]
InitFailed(#[from] winit::error::OsError),
#[error("Failed to create a surface for the window")]
/// Surface creation error
Surface(Box<dyn std::error::Error>),
/// Context creation is not supported on the current window system
#[error("Context creation is not supported on the current window system")]
NotSupported,
@ -181,7 +184,8 @@ where
let size = winit_window.inner_size();
let surface = unsafe {
wegl::WlEglSurface::new_from_raw(wl_surface as *mut _, size.width as i32, size.height as i32)
};
}
.map_err(|err| Error::Surface(err.into()))?;
(
EGLSurface::new(
&display,