d3d12: Clean dirty texture when releasing resource storage

When an app is exiting, remaining dirty texture could be left uncleant.
This commit is contained in:
Vincent Lejeune 2015-10-02 23:11:21 +02:00
parent 6b0d29a72d
commit 3acc900363

View File

@ -101,6 +101,8 @@ void D3D12GSRender::ResourceStorage::WaitAndClean()
void D3D12GSRender::ResourceStorage::Release()
{
for (auto tmp : m_dirtyTextures)
tmp->Release();
// NOTE: Should be released only after gfx pipeline last command has been finished.
CloseHandle(m_frameFinishedHandle);
}