Skip to content

Commit

Permalink
metal: don't retain resources
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jul 9, 2024
1 parent 21a56f7 commit dc2568f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blade-graphics/src/metal/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl super::CommandEncoder {
pub fn start(&mut self) {
let queue = self.queue.lock().unwrap();
self.raw = Some(objc::rc::autoreleasepool(|| {
let cmd_buf = queue.new_command_buffer();
let cmd_buf = queue.new_command_buffer_with_unretained_references();
if !self.name.is_empty() {
cmd_buf.set_label(&self.name);
}
Expand Down

0 comments on commit dc2568f

Please sign in to comment.