mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-30 11:21:01 +00:00
Use SAFE_RELEASE for destroying command lists in case of device removed
This commit is contained in:
@@ -4316,7 +4316,7 @@ RDResult WrappedID3D12Device::ReadLogInitialisation(RDCFile *rdc, bool storeStru
|
||||
for(auto it = cmd.m_BakedCmdListInfo.begin(); it != cmd.m_BakedCmdListInfo.end(); it++)
|
||||
{
|
||||
for(size_t i = 0; i < it->second.crackedLists.size(); i++)
|
||||
it->second.crackedLists[i]->Release();
|
||||
SAFE_RELEASE(it->second.crackedLists[i]);
|
||||
it->second.crackedLists.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user