mirror of https://github.com/AxioDL/boo.git
Metal viewport restore fix
This commit is contained in:
parent
db89640172
commit
4cffc6e4ec
|
@ -719,6 +719,8 @@ struct MetalCommandQueue : IGraphicsCommandQueue
|
|||
m_enc = [m_cmdBuf renderCommandEncoderWithDescriptor:ctarget->m_passDesc];
|
||||
[m_enc setFrontFacingWinding:MTLWindingCounterClockwise];
|
||||
}
|
||||
if (ctarget == m_boundTarget && (m_boundVp.width || m_boundVp.height))
|
||||
[m_enc setViewport:m_boundVp];
|
||||
m_boundTarget = ctarget;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue