Delete command buffer info from records

This commit is contained in:
baldurk
2016-11-18 21:17:13 +01:00
parent 5ae3cdf7fb
commit 4ecd99bf52
2 changed files with 4 additions and 1 deletions
@@ -657,6 +657,9 @@ WrappedID3D12GraphicsCommandList::~WrappedID3D12GraphicsCommandList()
if(m_pReal)
m_pDevice->GetResourceManager()->RemoveWrapper(m_pReal);
if(m_ListRecord && m_ListRecord->bakedCommands)
m_ListRecord->bakedCommands->Delete(m_pDevice->GetResourceManager());
m_pDevice->GetResourceManager()->ReleaseCurrentResource(GetResourceID());
SAFE_RELEASE(m_WrappedDebug.m_pReal);
+1 -1
View File
@@ -382,7 +382,7 @@ struct D3D12ResourceRecord : public ResourceRecord
bakedCommands(NULL)
{
}
~D3D12ResourceRecord() {}
~D3D12ResourceRecord() { SAFE_DELETE(cmdInfo); }
void Bake()
{
RDCASSERT(cmdInfo);