mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +00:00
Cleanup
This commit is contained in:
parent
a7e5c26011
commit
102c87e623
1 changed files with 2 additions and 10 deletions
|
@ -579,17 +579,9 @@ namespace Ryujinx.Graphics.Metal
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = 0; i < bufferDescriptors.Length; i++)
|
for (int i = 0; i < bufferDescriptors.Length; i++)
|
||||||
{
|
|
||||||
if (usedIndexes.Contains(i))
|
|
||||||
{
|
{
|
||||||
var layout = vertexDescriptor.Layouts.Object((ulong)i);
|
var layout = vertexDescriptor.Layouts.Object((ulong)i);
|
||||||
layout.Stride = (ulong)bufferDescriptors[i].Stride;
|
layout.Stride = usedIndexes.Contains(i) ? (ulong)bufferDescriptors[i].Stride : 0;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var layout = vertexDescriptor.Layouts.Object((ulong)i);
|
|
||||||
layout.Stride = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return vertexDescriptor;
|
return vertexDescriptor;
|
||||||
|
|
Loading…
Reference in a new issue