mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Use plain array instead of set for resource record parents array
This commit is contained in:
@@ -332,10 +332,10 @@ struct ResourceRecord
|
||||
if(r == this)
|
||||
return;
|
||||
|
||||
if(Parents.find(r) == Parents.end())
|
||||
if(Parents.indexOf(r) < 0)
|
||||
{
|
||||
r->AddRef();
|
||||
Parents.insert(r);
|
||||
Parents.push_back(r);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -503,7 +503,7 @@ protected:
|
||||
|
||||
ResourceId ResID;
|
||||
|
||||
std::set<ResourceRecord *> Parents;
|
||||
rdcarray<ResourceRecord *> Parents;
|
||||
|
||||
int64_t GetID()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user