mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-08 15:04:21 +00:00
Don't allow resource records to become their own parents
This commit is contained in:
1 file changed
+3
@@ -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