diff --git a/wgpu-core/src/track/stateless.rs b/wgpu-core/src/track/stateless.rs index b33905f512..6795890cc6 100644 --- a/wgpu-core/src/track/stateless.rs +++ b/wgpu-core/src/track/stateless.rs @@ -88,7 +88,7 @@ impl> ResourceTracker fn remove_abandoned(&mut self, id: Id) -> bool { let index = id.unzip().0 as usize; - if index > self.metadata.size() { + if index >= self.metadata.size() { return false; }