mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-03 12:02:25 -07:00
Format
This commit is contained in:
committed by
Isaac Marovitz
parent
722aa4e45d
commit
32db6cc281
@@ -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();
|
||||
|
Reference in New Issue
Block a user