mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Delete command buffer info from records
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -382,7 +382,7 @@ struct D3D12ResourceRecord : public ResourceRecord
|
||||
bakedCommands(NULL)
|
||||
{
|
||||
}
|
||||
~D3D12ResourceRecord() {}
|
||||
~D3D12ResourceRecord() { SAFE_DELETE(cmdInfo); }
|
||||
void Bake()
|
||||
{
|
||||
RDCASSERT(cmdInfo);
|
||||
|
||||
Reference in New Issue
Block a user