don't bind null vertex buffers

This commit is contained in:
Samuliak 2024-05-19 13:25:52 +02:00 committed by Isaac Marovitz
parent 5c34de072c
commit 45f7e4ce53
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 8 additions and 5 deletions

View File

@ -564,6 +564,8 @@ namespace Ryujinx.Graphics.Metal
for (int i = 0; i < bufferDescriptors.Length; i++)
{
if (bufferDescriptors[i].Buffer.Handle.ToIntPtr() != IntPtr.Zero)
{
buffers.Add(new BufferInfo
{
@ -572,6 +574,7 @@ namespace Ryujinx.Graphics.Metal
Index = i
});
}
}
SetBuffers(renderCommandEncoder, buffers);
}