Reset Descriptor instead of making a new object

This commit is contained in:
Isaac Marovitz 2023-10-10 18:00:32 -04:00
parent 2051e274ee
commit bb09ab818c
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 1 additions and 1 deletions

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