1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

fix: ensure mapped range is dropped before unmapping buffer in capture (#8337)

After upgrading to wgpu v30, it requires to drop the `BufferView` return
by `get_mapped_range` before unmap the buffer. Fix it in this pr, making
screenshot event crash no more
This commit is contained in:
Magic Crazy Man
2026-07-28 17:46:07 +08:00
committed by GitHub
parent 8c1711ff9f
commit 76442c870e

View File

@@ -230,6 +230,7 @@ impl CaptureState {
)); ));
} }
} }
drop(mapped_range);
buffer.unmap(); buffer.unmap();
tx.send(( tx.send((