mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-02 14:32:07 +01:00
Reset Descriptor instead of making a new object
This commit is contained in:
parent
db9de66437
commit
8232ce7d72
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue