From 8232ce7d7289d137d578a66fbb8aba229a44dd02 Mon Sep 17 00:00:00 2001
From: Isaac Marovitz <isaacryu@icloud.com>
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<VertexAttribDescriptor> vertexAttribs)
         {
             // Reset Vertex Descriptor
-            _vertexDescriptor = new();
+            _vertexDescriptor.Reset();
 
             for (int i = 0; i < vertexAttribs.Length; i++)
             {