Reset Descriptor instead of making a new object

This commit is contained in:
Isaac Marovitz 2023-10-10 18:00:32 -04:00 committed by Isaac Marovitz
parent db9de66437
commit 8232ce7d72

View File

@ -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++)
{