Metal viewport restore fix

This commit is contained in:
Jack Andersen 2016-09-11 19:28:54 -10:00
parent db89640172
commit 4cffc6e4ec
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}