Ensure all fences are destroyed on dispose

This commit is contained in:
gdk 2022-06-13 23:20:15 -03:00 committed by riperiperi
parent ed681977f9
commit e1e69f64bc

View file

@ -178,6 +178,11 @@ namespace Ryujinx.Graphics.Vulkan
if (disposing)
{
_buffer.Dispose();
while (_pendingCopies.TryDequeue(out var pc))
{
pc.Fence.Put();
}
}
}