fix: visionOS 1.2 build errors (#3347)
This commit is contained in:
parent
ff1fa8dd39
commit
ed03259c41
@ -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") )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user