Improve ar frame handling if no depth image is available
This commit is contained in:
@@ -137,6 +137,13 @@ namespace OpenVulkano::AR::ArKit
|
||||
m_depthImage.confidence.resolution = { 1, 1 };
|
||||
}
|
||||
#endif
|
||||
else
|
||||
{
|
||||
m_depthImage.depth.data = nullptr;
|
||||
m_depthImage.depth.resolution = { 0, 0 };
|
||||
m_depthImage.confidence.data = nullptr;
|
||||
m_depthImage.confidence.resolution = { 0, 0 };
|
||||
}
|
||||
m_depthImage.intrinsic = frameMetadata.intrinsic.GetForResolution(m_depthImage.depth.resolution);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user