mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-11-28 19:54:29 +01:00
don't bind null vertex buffers
This commit is contained in:
parent
ccce85e1bb
commit
0444e43654
@ -565,12 +565,15 @@ namespace Ryujinx.Graphics.Metal
|
||||
|
||||
for (int i = 0; i < bufferDescriptors.Length; i++)
|
||||
{
|
||||
buffers.Add(new BufferInfo
|
||||
if (bufferDescriptors[i].Buffer.Handle.ToIntPtr() != IntPtr.Zero)
|
||||
{
|
||||
Handle = bufferDescriptors[i].Buffer.Handle.ToIntPtr(),
|
||||
Offset = bufferDescriptors[i].Buffer.Offset,
|
||||
Index = i
|
||||
});
|
||||
buffers.Add(new BufferInfo
|
||||
{
|
||||
Handle = bufferDescriptors[i].Buffer.Handle.ToIntPtr(),
|
||||
Offset = bufferDescriptors[i].Buffer.Offset,
|
||||
Index = i
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
SetBuffers(renderCommandEncoder, buffers);
|
||||
|
Loading…
Reference in New Issue
Block a user