1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Update to wgpu 22.1 (#4964)

Updates to wgpu 22.1, removing a workaround that was needed for wgpu
22.0
This commit is contained in:
Andreas Reich
2024-08-16 13:29:40 +02:00
committed by GitHub
parent 1f6ae49a5f
commit 9a1e358a14
3 changed files with 5 additions and 16 deletions

View File

@@ -96,17 +96,6 @@ pub struct Painter {
surfaces: ViewportIdMap<SurfaceState>,
}
impl Drop for Painter {
fn drop(&mut self) {
// Drop surfaces before dropping the render state.
//
// This is a workaround for a bug in wgpu 22.0.0.
// Fixed in https://github.com/gfx-rs/wgpu/pull/6052
// Remove with wgpu 22.1.0 update!
self.surfaces.clear();
}
}
impl Painter {
/// Manages [`wgpu`] state, including surface state, required to render egui.
///