mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
fix ordering of device.valid.store in device_destroy
This commit is contained in:
1 parent
eb47449eb9
commit
480abae331
1 file changed
+1
-1
@@ -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