For resources written in the frame, mark dirty at the end

* If the write was recorded only to the frame, our background tracking may no
  longer be up to date so if the resource isn't dirty already it should be
  marked dirty so that we fetch its state properly on any subsequent captures.
  This is most relevant for GL where many objects have mutable state which may
  only be recorded mid-frame.
This commit is contained in:
baldurk
2019-08-09 11:49:28 +01:00
parent 08de2623f8
commit 5c01ab3ea9
+4
View File
@@ -1344,7 +1344,11 @@ void ResourceManager<Configuration>::ClearReferencedResources()
RecordType *record = GetResourceRecord(it->first);
if(record)
{
if(IncludesWrite(it->second))
MarkDirtyResource(it->first);
record->Delete(this);
}
}
m_FrameReferencedResources.clear();