change for loop condition to fences.Length instead of count to elide Span boundary checks on fences

This commit is contained in:
jhorv 2024-05-16 22:11:00 -04:00
parent 40c4b1501e
commit 9ab4789345

View file

@ -174,7 +174,7 @@ namespace Ryujinx.Graphics.Vulkan
int fenceCount = 0;
for (int i = 0; i < count; i++)
for (int i = 0; i < fences.Length; i++)
{
if (fenceHolders[i].TryGet(out Fence fence))
{