Skip to content

Commit 480abae

Browse files
committed
fix ordering of device.valid.store in device_destroy
1 parent eb47449 commit 480abae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wgpu-core/src/device/global.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ impl Global {
22932293
// check for empty queues and a DeviceLostClosure. At that time,
22942294
// the DeviceLostClosure will be called with "destroyed" as the
22952295
// reason.
2296-
device.valid.store(false, Ordering::Relaxed);
2296+
device.valid.store(false, Ordering::Release);
22972297
}
22982298
}
22992299

0 commit comments

Comments
 (0)