Skip to content

Commit

Permalink
Fix lock order to remove the chance of deadlock (bevyengine#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-deason authored Dec 22, 2020
1 parent dd668c1 commit 814c413
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ impl RenderResourceContext for WgpuRenderResourceContext {
}

fn remove_buffer(&self, buffer: BufferId) {
let mut buffers = self.resources.buffers.write();
let mut buffer_infos = self.resources.buffer_infos.write();
let mut buffers = self.resources.buffers.write();

buffers.remove(&buffer);
buffer_infos.remove(&buffer);
Expand Down

0 comments on commit 814c413

Please sign in to comment.