Skip to content

Commit dcafe2f

Browse files
Wumpfhacknus
authored andcommitted
Update to wgpu 22.1 (emilk#4964)
Updates to wgpu 22.1, removing a workaround that was needed for wgpu 22.0
1 parent 9a79e9d commit dcafe2f

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

Cargo.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -4432,9 +4432,9 @@ checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"
44324432

44334433
[[package]]
44344434
name = "wgpu"
4435-
version = "22.0.0"
4435+
version = "22.1.0"
44364436
source = "registry+https://github.com/rust-lang/crates.io-index"
4437-
checksum = "c87e07e87a179614940ad845397e03201847453a37b43a31a3b54eee2e6e32ce"
4437+
checksum = "e1d1c4ba43f80542cf63a0a6ed3134629ae73e8ab51e4b765a67f3aa062eb433"
44384438
dependencies = [
44394439
"arrayvec",
44404440
"cfg_aliases 0.1.1",
@@ -4457,9 +4457,9 @@ dependencies = [
44574457

44584458
[[package]]
44594459
name = "wgpu-core"
4460-
version = "22.0.0"
4460+
version = "22.1.0"
44614461
source = "registry+https://github.com/rust-lang/crates.io-index"
4462-
checksum = "e0f191908a21968991463fcf3b42cb6c9648c0fb7fa301b8fc733bc21a9ed9bd"
4462+
checksum = "0348c840d1051b8e86c3bcd31206080c5e71e5933dabd79be1ce732b0b2f089a"
44634463
dependencies = [
44644464
"arrayvec",
44654465
"bit-vec 0.7.0",

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ web-time = "1.1.0" # Timekeeping for native and web
9191
wasm-bindgen = "0.2"
9292
wasm-bindgen-futures = "0.4"
9393
web-sys = "0.3.58"
94-
wgpu = { version = "22.0.0", default-features = false, features = [
94+
wgpu = { version = "22.1.0", default-features = false, features = [
9595
# Make the renderer `Sync` even on wasm32, because it makes the code simpler:
9696
"fragile-send-sync-non-atomic-wasm",
9797
] }

crates/egui-wgpu/src/winit.rs

-11
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,6 @@ pub struct Painter {
9696
surfaces: ViewportIdMap<SurfaceState>,
9797
}
9898

99-
impl Drop for Painter {
100-
fn drop(&mut self) {
101-
// Drop surfaces before dropping the render state.
102-
//
103-
// This is a workaround for a bug in wgpu 22.0.0.
104-
// Fixed in https://github.com/gfx-rs/wgpu/pull/6052
105-
// Remove with wgpu 22.1.0 update!
106-
self.surfaces.clear();
107-
}
108-
}
109-
11099
impl Painter {
111100
/// Manages [`wgpu`] state, including surface state, required to render egui.
112101
///

0 commit comments

Comments
 (0)