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:
baldurk
2014-09-28 12:44:26 +01:00
parent ae99e32ad4
commit 60ab640a51
+1 -1
View File
@@ -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;