From 05df13a4f751910ef54d7805e8e4682488b23b8d Mon Sep 17 00:00:00 2001 From: FL33TW00D Date: Tue, 2 May 2023 22:54:36 +0100 Subject: [PATCH] Revert "fix: check if this retain is legit" This reverts commit c09a7901864b899246029c13cc8463a8299d4b3a. --- src/computepass.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/computepass.rs b/src/computepass.rs index f65de28..50774d6 100644 --- a/src/computepass.rs +++ b/src/computepass.rs @@ -72,10 +72,7 @@ impl ComputePassSampleBufferAttachmentDescriptorRef { } pub fn set_sample_buffer(&self, sample_buffer: &CounterSampleBufferRef) { - unsafe { - let () = msg_send![sample_buffer, retain]; - msg_send![self, setSampleBuffer: sample_buffer] - } + unsafe { msg_send![self, setSampleBuffer: sample_buffer] } } pub fn start_of_encoder_sample_index(&self) -> NSUInteger {