mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00: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_currentScaleOffsetBufferIndex = 0;
|
||||
m_currentTextureIndex = 0;
|
||||
m_frameFinishedFence = nullptr;
|
||||
m_frameFinishedHandle = 0;
|
||||
|
||||
for (auto tmp : m_inUseConstantsBuffers)
|
||||
std::get<2>(tmp)->Release();
|
||||
|
@ -160,8 +162,10 @@ void D3D12GSRender::ResourceStorage::Release()
|
|||
m_commandAllocator->Release();
|
||||
m_textureUploadCommandAllocator->Release();
|
||||
m_downloadCommandAllocator->Release();
|
||||
CloseHandle(m_frameFinishedHandle);
|
||||
m_frameFinishedFence->Release();
|
||||
if (m_frameFinishedHandle)
|
||||
CloseHandle(m_frameFinishedHandle);
|
||||
if (m_frameFinishedFence)
|
||||
m_frameFinishedFence->Release();
|
||||
}
|
||||
|
||||
// 32 bits float to U8 unorm CS
|
||||
|
|
Loading…
Add table
Reference in a new issue