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:
@@ -230,6 +230,7 @@ impl CaptureState {
|
||||
));
|
||||
}
|
||||
}
|
||||
drop(mapped_range);
|
||||
buffer.unmap();
|
||||
|
||||
tx.send((
|
||||
|
||||
Reference in New Issue
Block a user