This commit is contained in:
Isaac Marovitz 2024-04-22 17:51:31 -04:00 committed by Isaac Marovitz
parent 722aa4e45d
commit 32db6cc281

View file

@ -531,7 +531,10 @@ namespace Ryujinx.Graphics.Metal
{
int maxScissors = Math.Min(regions.Length, _renderEncoderState.ViewportCount);
if (maxScissors == 0) { return; }
if (maxScissors == 0)
{
return;
}
var mtlScissorRects = new MTLScissorRect[maxScissors];
@ -549,7 +552,8 @@ namespace Ryujinx.Graphics.Metal
}
_renderEncoderState.UpdateScissors(mtlScissorRects);
if (_currentEncoderType == EncoderType.Render) {
if (_currentEncoderType == EncoderType.Render)
{
fixed (MTLScissorRect* pMtlScissorRects = mtlScissorRects)
{
var renderCommandEncoder = GetOrCreateRenderEncoder();