diff --git a/src/Ryujinx.Graphics.Metal/CommandBufferPool.cs b/src/Ryujinx.Graphics.Metal/CommandBufferPool.cs index 925e4980b5..ac8c45b203 100644 --- a/src/Ryujinx.Graphics.Metal/CommandBufferPool.cs +++ b/src/Ryujinx.Graphics.Metal/CommandBufferPool.cs @@ -27,6 +27,11 @@ namespace Ryujinx.Graphics.Metal public List Dependants; public List Waitables; + public void Reinitialize(MTLCommandQueue queue) + { + CommandBuffer = queue.CommandBuffer(); + } + public void Initialize(MTLCommandQueue queue) { CommandBuffer = queue.CommandBuffer(); @@ -218,7 +223,7 @@ namespace Ryujinx.Graphics.Metal commandBuffer.Commit(); // Replace entry with new MTLCommandBuffer - entry.Initialize(_queue); + entry.Reinitialize(_queue); int ptr = (_queuedIndexesPtr + _queuedCount) % _totalCommandBuffers; _queuedIndexes[ptr] = cbIndex;