     ///   - time: SCNSceneRendererDelegate time
     public func renderer(_ renderer: SCNSceneRenderer, didRenderScene scene: SCNScene, atTime time: TimeInterval) {        
         guard let arView = self._arView,
-            let pixelBuffer = arView.session.currentFrame?.capturedImage,
-            let pointOfView = arView.pointOfView,
-            let device = self._device else {
+              let pixelBuffer = arView.session.currentFrame?.capturedImage,
+              let pointOfView = arView.pointOfView,
+              let device = self._device else {
                 return
         }
         

            self._texture = device.makeTexture(descriptor: textureDescriptor)
        }
        
        if let commandBuffer = self._commandQueue?.makeCommandBuffer(),
            let renderPassDescriptor = self._renderPassDescriptor,
            let texture = self._texture {
            
            renderPassDescriptor.colorAttachments[0].texture = texture
            renderPassDescriptor.colorAttachments[0].loadAction = .clear
            renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(0, 0, 0, 1.0);

        self._device = nil
        self._library = nil
        self._commandQueue = nil
        self._texture = nil
        
        #if USE_ARKIT
        self._renderer?.scene = nil
        self._renderer = nil
        self._arView = nil
        #endif
    
        self._ciContext = nil
        self._pixelBufferPool = nil
        self._videoBufferOutput = nil
    }
    
}
