File tree 3 files changed +5
-16
lines changed
3 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -4432,9 +4432,9 @@ checksum = "53a85b86a771b1c87058196170769dd264f66c0782acf1ae6cc51bfd64b39082"
4432
4432
4433
4433
[[package ]]
4434
4434
name = " wgpu"
4435
- version = " 22.0 .0"
4435
+ version = " 22.1 .0"
4436
4436
source = " registry+https://github.com/rust-lang/crates.io-index"
4437
- checksum = " c87e07e87a179614940ad845397e03201847453a37b43a31a3b54eee2e6e32ce "
4437
+ checksum = " e1d1c4ba43f80542cf63a0a6ed3134629ae73e8ab51e4b765a67f3aa062eb433 "
4438
4438
dependencies = [
4439
4439
" arrayvec" ,
4440
4440
" cfg_aliases 0.1.1" ,
@@ -4457,9 +4457,9 @@ dependencies = [
4457
4457
4458
4458
[[package ]]
4459
4459
name = " wgpu-core"
4460
- version = " 22.0 .0"
4460
+ version = " 22.1 .0"
4461
4461
source = " registry+https://github.com/rust-lang/crates.io-index"
4462
- checksum = " e0f191908a21968991463fcf3b42cb6c9648c0fb7fa301b8fc733bc21a9ed9bd "
4462
+ checksum = " 0348c840d1051b8e86c3bcd31206080c5e71e5933dabd79be1ce732b0b2f089a "
4463
4463
dependencies = [
4464
4464
" arrayvec" ,
4465
4465
" bit-vec 0.7.0" ,
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ web-time = "1.1.0" # Timekeeping for native and web
91
91
wasm-bindgen = " 0.2"
92
92
wasm-bindgen-futures = " 0.4"
93
93
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 = [
95
95
# Make the renderer `Sync` even on wasm32, because it makes the code simpler:
96
96
" fragile-send-sync-non-atomic-wasm" ,
97
97
] }
Original file line number Diff line number Diff line change @@ -96,17 +96,6 @@ pub struct Painter {
96
96
surfaces : ViewportIdMap < SurfaceState > ,
97
97
}
98
98
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
-
110
99
impl Painter {
111
100
/// Manages [`wgpu`] state, including surface state, required to render egui.
112
101
///
You can’t perform that action at this time.
0 commit comments