From bb09ab818c0d84c91f0ba3e4287e902ceb739139 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Tue, 10 Oct 2023 18:00:32 -0400 Subject: [PATCH] Reset Descriptor instead of making a new object --- src/Ryujinx.Graphics.Metal/RenderEncoderState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/RenderEncoderState.cs b/src/Ryujinx.Graphics.Metal/RenderEncoderState.cs index 74254c66f..c712c96f3 100644 --- a/src/Ryujinx.Graphics.Metal/RenderEncoderState.cs +++ b/src/Ryujinx.Graphics.Metal/RenderEncoderState.cs @@ -106,7 +106,7 @@ namespace Ryujinx.Graphics.Metal public void UpdateVertexAttributes(ReadOnlySpan vertexAttribs) { // Reset Vertex Descriptor - _vertexDescriptor = new(); + _vertexDescriptor.Reset(); for (int i = 0; i < vertexAttribs.Length; i++) {