This commit is contained in:
Isaac Marovitz 2024-04-22 17:51:31 -04:00
parent f56b826da9
commit 451053c3d9
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 6 additions and 2 deletions

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();