mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-03 03:35:52 +00:00
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 = [m_cmdBuf renderCommandEncoderWithDescriptor:ctarget->m_passDesc];
|
||||||
[m_enc setFrontFacingWinding:MTLWindingCounterClockwise];
|
[m_enc setFrontFacingWinding:MTLWindingCounterClockwise];
|
||||||
}
|
}
|
||||||
|
if (ctarget == m_boundTarget && (m_boundVp.width || m_boundVp.height))
|
||||||
|
[m_enc setViewport:m_boundVp];
|
||||||
m_boundTarget = ctarget;
|
m_boundTarget = ctarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user