From d1787665a41682254eee9bc8f67d4332b2a6909f Mon Sep 17 00:00:00 2001 From: Cedric Guillemet <1312968+CedricGuillemet@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:20:46 +0200 Subject: [PATCH 1/2] iOS AR Metal Validation Error --- Dependencies/xr/Source/ARKit/XR.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dependencies/xr/Source/ARKit/XR.mm b/Dependencies/xr/Source/ARKit/XR.mm index d1bf5f6fe..080322360 100644 --- a/Dependencies/xr/Source/ARKit/XR.mm +++ b/Dependencies/xr/Source/ARKit/XR.mm @@ -946,6 +946,8 @@ void UpdateXRView(MTKView* activeXRView) { // Finalize rendering here & push the command buffer to the GPU. [currentCommandBuffer commit]; + + [currentCommandBuffer waitUntilCompleted]; return std::make_unique(*this); } From 51115eb4c33a286d2942b7ac5b92a4b290a01632 Mon Sep 17 00:00:00 2001 From: Cedric Guillemet <1312968+CedricGuillemet@users.noreply.github.com> Date: Wed, 17 Jul 2024 14:22:19 +0200 Subject: [PATCH 2/2] spaces --- Dependencies/xr/Source/ARKit/XR.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dependencies/xr/Source/ARKit/XR.mm b/Dependencies/xr/Source/ARKit/XR.mm index 080322360..34d2e9aca 100644 --- a/Dependencies/xr/Source/ARKit/XR.mm +++ b/Dependencies/xr/Source/ARKit/XR.mm @@ -947,7 +947,7 @@ void UpdateXRView(MTKView* activeXRView) { // Finalize rendering here & push the command buffer to the GPU. [currentCommandBuffer commit]; - [currentCommandBuffer waitUntilCompleted]; + [currentCommandBuffer waitUntilCompleted]; return std::make_unique(*this); }