From 4a2da9361eea136a30634b11bc91a97bbd2ee12e Mon Sep 17 00:00:00 2001 From: sagudev <16504129+sagudev@users.noreply.github.com> Date: Thu, 21 Nov 2024 14:46:38 +0100 Subject: [PATCH] Update glow to 0.16 Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> --- Cargo.lock | 22 +++++++++++++++++----- Cargo.toml | 2 +- crates/egui_glow/src/painter.rs | 8 ++++---- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 000165018c68..c6793aed2c32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1193,7 +1193,7 @@ dependencies = [ "egui-wgpu", "egui-winit", "egui_glow", - "glow", + "glow 0.16.0", "glutin", "glutin-winit", "home", @@ -1345,7 +1345,7 @@ dependencies = [ "document-features", "egui", "egui-winit", - "glow", + "glow 0.16.0", "glutin", "glutin-winit", "log", @@ -1829,6 +1829,18 @@ dependencies = [ "web-sys", ] +[[package]] +name = "glow" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + [[package]] name = "glutin" version = "0.32.1" @@ -2261,7 +2273,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" dependencies = [ "cfg-if", - "windows-targets 0.48.5", + "windows-targets 0.52.6", ] [[package]] @@ -4405,7 +4417,7 @@ dependencies = [ "bytemuck", "cfg_aliases 0.1.1", "core-graphics-types", - "glow", + "glow 0.14.2", "glutin_wgl_sys", "gpu-alloc", "gpu-descriptor", @@ -4465,7 +4477,7 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.48.0", + "windows-sys 0.59.0", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 06c8a715757a..3a0566e9ef76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,7 +77,7 @@ bytemuck = "1.7.2" criterion = { version = "0.5.1", default-features = false } dify = { version = "0.7", default-features = false } document-features = "0.2.10" -glow = "0.14" +glow = "0.16" glutin = "0.32.0" glutin-winit = "0.5.0" home = "0.5.9" diff --git a/crates/egui_glow/src/painter.rs b/crates/egui_glow/src/painter.rs index f8f6145c8a03..86d86bedf7c6 100644 --- a/crates/egui_glow/src/painter.rs +++ b/crates/egui_glow/src/painter.rs @@ -620,7 +620,7 @@ impl Painter { h as _, src_format, glow::UNSIGNED_BYTE, - glow::PixelUnpackData::Slice(data), + glow::PixelUnpackData::Slice(Some(data)), ); check_for_gl_error!(&self.gl, "tex_sub_image_2d"); } else { @@ -635,7 +635,7 @@ impl Painter { border, src_format, glow::UNSIGNED_BYTE, - Some(data), + glow::PixelUnpackData::Slice(Some(data)), ); check_for_gl_error!(&self.gl, "tex_image_2d"); } @@ -686,7 +686,7 @@ impl Painter { h as _, glow::RGBA, glow::UNSIGNED_BYTE, - glow::PixelPackData::Slice(&mut pixels), + glow::PixelPackData::Slice(Some(&mut pixels)), ); } let mut flipped = Vec::with_capacity((w * h * 4) as usize); @@ -711,7 +711,7 @@ impl Painter { h as _, glow::RGB, glow::UNSIGNED_BYTE, - glow::PixelPackData::Slice(&mut pixels), + glow::PixelPackData::Slice(Some(&mut pixels)), ); } pixels