If a flush is not serialised due to not capturing, mark resource dirty

This commit is contained in:
baldurk committed 2016-02-07 18:49:17 +01:00
1 parent 52e90a08e9
commit ae557c5bb3
1 file changed
+4
@@ -548,6 +548,10 @@ VkResult WrappedVulkan::vkFlushMappedMemoryRanges(
m_FrameCaptureRecord->AddChunk(scope.Get());
GetResourceManager()->MarkResourceFrameReferenced(GetResID(pMemRanges[i].memory), eFrameRef_Write);
}
else
{
GetResourceManager()->MarkDirtyResource(memid);
}
}
}