Skip to content

Commit

Permalink
Revert wrap set_label, instead focus on gfx-rs/metal-rs#218
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaopengli89 committed Oct 20, 2021
1 parent 5e8ccc5 commit a7d100c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wgpu-hal/src/metal/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
});

if let Some(label) = label {
objc::rc::autoreleasepool(|| {
raw.set_label(label);
});
raw.set_label(label);
}
self.raw_cmd_buf = Some(raw);

Expand Down

0 comments on commit a7d100c

Please sign in to comment.