Skip to content

Commit

Permalink
suspect all the future suspects (gfx-rs#5413)
Browse files Browse the repository at this point in the history
* suspect all the future suspects

* changelog
  • Loading branch information
robtfm authored and cwfitzgerald committed Apr 17, 2024
1 parent 95dc7e5 commit a4942a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/device/life.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ impl<A: HalApi> LifetimeTracker<A> {
}

pub fn post_submit(&mut self) {
for v in self.future_suspected_buffers.drain(..).take(1) {
for v in self.future_suspected_buffers.drain(..) {
self.suspected_resources.buffers.insert(v.as_info().id(), v);
}
for v in self.future_suspected_textures.drain(..).take(1) {
for v in self.future_suspected_textures.drain(..) {
self.suspected_resources
.textures
.insert(v.as_info().id(), v);
Expand Down

0 comments on commit a4942a4

Please sign in to comment.