mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-28 11:50:50 +01:00
Reset Descriptor instead of making a new object
This commit is contained in:
parent
db9de66437
commit
8232ce7d72
@ -106,7 +106,7 @@ namespace Ryujinx.Graphics.Metal
|
|||||||
public void UpdateVertexAttributes(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs)
|
public void UpdateVertexAttributes(ReadOnlySpan<VertexAttribDescriptor> vertexAttribs)
|
||||||
{
|
{
|
||||||
// Reset Vertex Descriptor
|
// Reset Vertex Descriptor
|
||||||
_vertexDescriptor = new();
|
_vertexDescriptor.Reset();
|
||||||
|
|
||||||
for (int i = 0; i < vertexAttribs.Length; i++)
|
for (int i = 0; i < vertexAttribs.Length; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user