Skip to content

Commit

Permalink
fix ordering of device.valid.store in device_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Sep 9, 2024
1 parent eb47449 commit 480abae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wgpu-core/src/device/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 480abae

Please sign in to comment.