From ed03259c412371fc4e89a1a071c6e8bdb8be21c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwa=C5=9Bniewski?= Date: Wed, 28 Aug 2024 18:22:38 +0200 Subject: [PATCH] fix: visionOS 1.2 build errors (#3347) --- src/renderer_mtl.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index c775d5ce4..6d0b927c4 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -3502,6 +3502,7 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa release(m_metalLayer); } +#if !BX_PLATFORM_VISIONOS if (NULL != NSClassFromString(@"MTKView") ) { MTKView *view = (MTKView *)_nwh; @@ -3512,6 +3513,7 @@ BX_STATIC_ASSERT(BX_COUNTOF(s_accessNames) == Access::Count, "Invalid s_accessNa m_metalLayer = (CAMetalLayer *)view.layer; } } +#endif if (NULL != NSClassFromString(@"CAMetalLayer") ) {