mirror of https://github.com/AxioDL/boo.git
Merge branch 'master' of https://github.com/AxioDL/boo
This commit is contained in:
commit
fa61f2acae
|
@ -719,8 +719,14 @@ struct MetalCommandQueue : IGraphicsCommandQueue
|
||||||
m_enc = [m_cmdBuf renderCommandEncoderWithDescriptor:ctarget->m_passDesc];
|
m_enc = [m_cmdBuf renderCommandEncoderWithDescriptor:ctarget->m_passDesc];
|
||||||
[m_enc setFrontFacingWinding:MTLWindingCounterClockwise];
|
[m_enc setFrontFacingWinding:MTLWindingCounterClockwise];
|
||||||
}
|
}
|
||||||
if (ctarget == m_boundTarget && (m_boundVp.width || m_boundVp.height))
|
if (ctarget == m_boundTarget)
|
||||||
|
{
|
||||||
|
if (m_boundVp.width || m_boundVp.height)
|
||||||
[m_enc setViewport:m_boundVp];
|
[m_enc setViewport:m_boundVp];
|
||||||
|
if (m_boundScissor.width || m_boundScissor.height)
|
||||||
|
[m_enc setScissorRect:m_boundScissor];
|
||||||
|
}
|
||||||
|
else
|
||||||
m_boundTarget = ctarget;
|
m_boundTarget = ctarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue