mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix logic mistake causing crashes with superfluous GPU dirty data
* IF we are ref'ing all resources, we want to serialise GPU dirty resources regardless if they're in m_FrameReferencedResources. If we are NOT then we can skip out.
This commit is contained in:
@@ -843,7 +843,7 @@ void ResourceManager<ResourceType, RecordType>::InsertInitialContentsChunks(Seri
|
||||
ResourceId id = *it;
|
||||
|
||||
if(m_FrameReferencedResources.find(id) == m_FrameReferencedResources.end() &&
|
||||
RenderDoc::Inst().GetCaptureOptions().RefAllResources)
|
||||
!RenderDoc::Inst().GetCaptureOptions().RefAllResources)
|
||||
{
|
||||
RDCDEBUG("Resource %llu is GPU dirty but not referenced - skipping", id);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user