mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
wgpu: Relese map_context lock before map_async closure call (#8966)
This commit is contained in:
1 file changed
+1
@@ -572,6 +572,7 @@ impl<'a> BufferSlice<'a> {
|
||||
assert_eq!(mc.mapped_range, 0..0, "Buffer is already mapped");
|
||||
let end = self.offset + self.size.get();
|
||||
mc.mapped_range = self.offset..end;
|
||||
drop(mc); // release the lock of map_context as callback can call lock it again
|
||||
|
||||
self.buffer
|
||||
.inner
|
||||
|
||||
Reference in new issue
Block a user