diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index b9bd4ef766..30828a8ab4 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -3502,6 +3502,7 @@ void writeString(bx::WriterI* _writer, const char* _str) release(m_metalLayer); } +#if !BX_PLATFORM_VISIONOS if (NULL != NSClassFromString(@"MTKView") ) { MTKView *view = (MTKView *)_nwh; @@ -3512,6 +3513,7 @@ void writeString(bx::WriterI* _writer, const char* _str) m_metalLayer = (CAMetalLayer *)view.layer; } } +#endif if (NULL != NSClassFromString(@"CAMetalLayer") ) {