fix: visionOS 1.2 build errors (#3347)

This commit is contained in:
Oskar Kwaśniewski 2024-08-28 18:22:38 +02:00 committed by GitHub
parent ff1fa8dd39
commit ed03259c41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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") )
{