mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-12-02 14:32:07 +01:00
don't bind null vertex buffers
This commit is contained in:
parent
ccce85e1bb
commit
0444e43654
1 changed files with 8 additions and 5 deletions
|
@ -564,6 +564,8 @@ namespace Ryujinx.Graphics.Metal
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0; i < bufferDescriptors.Length; i++)
|
for (int i = 0; i < bufferDescriptors.Length; i++)
|
||||||
|
{
|
||||||
|
if (bufferDescriptors[i].Buffer.Handle.ToIntPtr() != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
buffers.Add(new BufferInfo
|
buffers.Add(new BufferInfo
|
||||||
{
|
{
|
||||||
|
@ -572,6 +574,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
Index = i
|
Index = i
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SetBuffers(renderCommandEncoder, buffers);
|
SetBuffers(renderCommandEncoder, buffers);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue