From 102c87e623793be11e804a66983eae33aa0948af Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Sat, 18 May 2024 22:17:18 -0400 Subject: [PATCH] Cleanup --- src/Ryujinx.Graphics.Metal/EncoderStateManager.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs index 5da579cc9..6b8689877 100644 --- a/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs +++ b/src/Ryujinx.Graphics.Metal/EncoderStateManager.cs @@ -580,16 +580,8 @@ namespace Ryujinx.Graphics.Metal for (int i = 0; i < bufferDescriptors.Length; i++) { - if (usedIndexes.Contains(i)) - { - var layout = vertexDescriptor.Layouts.Object((ulong)i); - layout.Stride = (ulong)bufferDescriptors[i].Stride; - } - else - { - var layout = vertexDescriptor.Layouts.Object((ulong)i); - layout.Stride = 0; - } + var layout = vertexDescriptor.Layouts.Object((ulong)i); + layout.Stride = usedIndexes.Contains(i) ? (ulong)bufferDescriptors[i].Stride : 0; } return vertexDescriptor;