From dc2568f2edaead4657d622bbe38f238f41b97274 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 9 Jul 2024 07:28:35 -0700 Subject: [PATCH] metal: don't retain resources --- blade-graphics/src/metal/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-graphics/src/metal/command.rs b/blade-graphics/src/metal/command.rs index 25956345..fdcd2f07 100644 --- a/blade-graphics/src/metal/command.rs +++ b/blade-graphics/src/metal/command.rs @@ -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); }