diff --git a/impl/ocean/devices/arkit/AKDevice.mm b/impl/ocean/devices/arkit/AKDevice.mm index 8c5ccab6..b5c2b8cc 100644 --- a/impl/ocean/devices/arkit/AKDevice.mm +++ b/impl/ocean/devices/arkit/AKDevice.mm @@ -736,14 +736,14 @@ - (void)session:(ARSession *)session didRemoveAnchors:(NSArray<__kindof ARAnchor } } -+ (ARVideoFormat*)determinePreferredVideoFormat:(NSArray *)supportedVideoFormats withWidth:(unsigned int)preferredWidth withHeight:(unsigned int)preferredHeight withFps:(float)preferredFps withHDR:(int)preferredHDR ++ (ARVideoFormat*)determinePreferredVideoFormat:(NSArray*)supportedVideoFormats withWidth:(unsigned int)preferredWidth withHeight:(unsigned int)preferredHeight withFps:(float)preferredFps withHDR:(int)preferredHDR { #ifdef OCEAN_DEBUG Log::debug() << "Supported video formats for tracker:"; - for (size_t n = 0; n < ARWorldTrackingConfiguration.supportedVideoFormats.count; ++n) + for (size_t n = 0; n < supportedVideoFormats.count; ++n) { - ARVideoFormat* videoFormat = ARWorldTrackingConfiguration.supportedVideoFormats[n]; + ARVideoFormat* videoFormat = supportedVideoFormats[n]; if (@available(iOS 16.0, *)) { @@ -782,9 +782,9 @@ + (ARVideoFormat*)determinePreferredVideoFormat:(NSArray *)supp while (result == nullptr) { - for (size_t n = 0; n < ARWorldTrackingConfiguration.supportedVideoFormats.count; ++n) + for (size_t n = 0; n < supportedVideoFormats.count; ++n) { - ARVideoFormat* videoFormat = ARWorldTrackingConfiguration.supportedVideoFormats[n]; + ARVideoFormat* videoFormat = supportedVideoFormats[n]; if (bestResolutionError < 0.0) {