mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 06:51:18 +12:00
release command buffers properly
This commit is contained in:
parent
e5dcd93dc3
commit
b5954d8f5b
4 changed files with 43 additions and 31 deletions
|
@ -267,11 +267,8 @@ void MetalRenderer::SwapBuffers(bool swapTV, bool swapDRC)
|
|||
if (swapDRC)
|
||||
SwapBuffer(false);
|
||||
|
||||
// Release all the command buffers
|
||||
// Reset the command buffers (they are released in)
|
||||
CommitCommandBuffer();
|
||||
// TODO: release
|
||||
//for (uint32 i = 0; i < m_commandBuffers.size(); i++)
|
||||
// m_commandBuffers[i].m_commandBuffer->release();
|
||||
m_commandBuffers.clear();
|
||||
|
||||
// Release frame persistent buffers
|
||||
|
@ -1581,6 +1578,7 @@ void MetalRenderer::CommitCommandBuffer()
|
|||
//});
|
||||
|
||||
commandBuffer.m_commandBuffer->commit();
|
||||
commandBuffer.m_commandBuffer->release();
|
||||
commandBuffer.m_commited = true;
|
||||
|
||||
m_memoryManager->GetTemporaryBufferAllocator().SetActiveCommandBuffer(nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue