Fix stale resource manager pointer in serializer

This commit is contained in:
galop1n
2016-09-16 13:48:42 +02:00
committed by baldurk
parent af259e24ef
commit f869d6d91b
+1 -1
View File
@@ -1571,10 +1571,10 @@ void WrappedID3D12Device::SetLogFile(const char *logfile)
{
m_pSerialiser = new Serialiser(logfile, Serialiser::READING, false);
m_pSerialiser->SetChunkNameLookup(&GetChunkName);
m_pSerialiser->SetUserData(m_ResourceManager);
SAFE_DELETE(m_ResourceManager);
m_ResourceManager = new D3D12ResourceManager(m_State, m_pSerialiser, this);
m_pSerialiser->SetUserData(m_ResourceManager);
}
const FetchDrawcall *WrappedID3D12Device::GetDrawcall(uint32_t eventID)