From 73e6df34659cc74f54c7fe3cebccd95ce87086ad Mon Sep 17 00:00:00 2001 From: GingerLiu <729403101@qq.com> Date: Thu, 17 Dec 2020 17:53:00 +0800 Subject: [PATCH] Update AgoraMetalRender.swift make textureCache and commandQueue reused --- iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift b/iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift index 4169baeef..15e275c6a 100644 --- a/iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift +++ b/iOS/APIExample/Common/ExternalVideo/AgoraMetalRender.swift @@ -83,9 +83,7 @@ extension AgoraMetalRender: AgoraVideoSinkProtocol { vertexBuffer = nil #if os(macOS) || (os(iOS) && (!arch(i386) && !arch(x86_64))) metalView.delegate = nil - textureCache = nil #endif - commandQueue = nil semaphore.signal() }