diff --git a/wgpu-core/src/hub.rs b/wgpu-core/src/hub.rs index 41f263e378..898fe45f8a 100644 --- a/wgpu-core/src/hub.rs +++ b/wgpu-core/src/hub.rs @@ -45,10 +45,6 @@ impl IdentityManager { pub fn free(&mut self, id: I) { let (index, epoch, _backend) = id.unzip(); - // avoid doing this check in release - if cfg!(debug_assertions) { - assert!(!self.free.contains(&index)); - } let pe = &mut self.epochs[index as usize]; assert_eq!(*pe, epoch); *pe += 1;