mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
fix ordering of device.valid.store in device_destroy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user