mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-14 06:40:53 +00:00
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:
parent
6b0d29a72d
commit
3acc900363
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user