mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 08:13:27 +00:00
fix ordering of device.valid.store
in device_destroy
This commit is contained in:
parent
eb47449eb9
commit
480abae331
@ -2293,7 +2293,7 @@ impl Global {
|
||||
// check for empty queues and a DeviceLostClosure. At that time,
|
||||
// the DeviceLostClosure will be called with "destroyed" as the
|
||||
// reason.
|
||||
device.valid.store(false, Ordering::Relaxed);
|
||||
device.valid.store(false, Ordering::Release);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user