Skip to content

Commit

Permalink
fix: layer rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Aug 12, 2024
1 parent 3f3d3b4 commit 27bdb49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer_mtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,9 @@ bool init(const Init& _init)
m_numWindows = 1;

#if BX_PLATFORM_VISIONOS
if ((m_mainFrameBuffer.m_swapChain->m_useLayerRenderer
&& NULL == m_mainFrameBuffer.m_swapChain->m_layerRenderer)
|| NULL == m_mainFrameBuffer.m_swapChain->m_metalLayer)
bool useLayerRenderer = m_mainFrameBuffer.m_swapChain->m_useLayerRenderer;
if ((useLayerRenderer && NULL == m_mainFrameBuffer.m_swapChain->m_layerRenderer)
|| (!useLayerRenderer && NULL == m_mainFrameBuffer.m_swapChain->m_metalLayer))
#else
if (NULL == m_mainFrameBuffer.m_swapChain->m_metalLayer)
#endif // BX_PLATFORM_VISIONOS
Expand Down

0 comments on commit 27bdb49

Please sign in to comment.