mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-10 15:55:45 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user