Only put memory binds into frame capture record if they're not the first

This commit is contained in:
baldurk
2015-10-11 12:02:29 +02:00
parent 08a63f2c0b
commit ac0f1c6540
@@ -422,7 +422,7 @@ VkResult WrappedVulkan::vkBindBufferMemory(
chunk = scope.Get();
}
if(m_State == WRITING_CAPFRAME)
if(m_State == WRITING_CAPFRAME && record->GetMemoryRecord())
{
m_FrameCaptureRecord->AddChunk(chunk);
@@ -485,7 +485,7 @@ VkResult WrappedVulkan::vkBindImageMemory(
chunk = scope.Get();
}
if(m_State == WRITING_CAPFRAME)
if(m_State == WRITING_CAPFRAME && record->GetMemoryRecord())
{
m_FrameCaptureRecord->AddChunk(chunk);