mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-18 03:35:57 +00:00
Don't allow resource records to become their own parents
This commit is contained in:
@@ -310,6 +310,9 @@ struct ResourceRecord
|
||||
~ResourceRecord() { SAFE_DELETE(m_ChunkLock); }
|
||||
void AddParent(ResourceRecord *r)
|
||||
{
|
||||
if(r == this)
|
||||
return;
|
||||
|
||||
if(Parents.find(r) == Parents.end())
|
||||
{
|
||||
r->AddRef();
|
||||
|
||||
Reference in New Issue
Block a user