mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12:00
d3d12: Fix crash at exit
This commit is contained in:
parent
5882f9defb
commit
caf863be4d
1 changed files with 6 additions and 2 deletions
|
@ -84,6 +84,8 @@ void D3D12GSRender::ResourceStorage::Reset()
|
||||||
m_constantsBufferIndex = 0;
|
m_constantsBufferIndex = 0;
|
||||||
m_currentScaleOffsetBufferIndex = 0;
|
m_currentScaleOffsetBufferIndex = 0;
|
||||||
m_currentTextureIndex = 0;
|
m_currentTextureIndex = 0;
|
||||||
|
m_frameFinishedFence = nullptr;
|
||||||
|
m_frameFinishedHandle = 0;
|
||||||
|
|
||||||
for (auto tmp : m_inUseConstantsBuffers)
|
for (auto tmp : m_inUseConstantsBuffers)
|
||||||
std::get<2>(tmp)->Release();
|
std::get<2>(tmp)->Release();
|
||||||
|
@ -160,7 +162,9 @@ void D3D12GSRender::ResourceStorage::Release()
|
||||||
m_commandAllocator->Release();
|
m_commandAllocator->Release();
|
||||||
m_textureUploadCommandAllocator->Release();
|
m_textureUploadCommandAllocator->Release();
|
||||||
m_downloadCommandAllocator->Release();
|
m_downloadCommandAllocator->Release();
|
||||||
|
if (m_frameFinishedHandle)
|
||||||
CloseHandle(m_frameFinishedHandle);
|
CloseHandle(m_frameFinishedHandle);
|
||||||
|
if (m_frameFinishedFence)
|
||||||
m_frameFinishedFence->Release();
|
m_frameFinishedFence->Release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue