Set command buffer info for all re-recorded commands, including partials

This commit is contained in:
baldurk
2017-09-13 12:30:38 +01:00
parent d4149985ea
commit f4c3254435
@@ -575,11 +575,11 @@ bool WrappedVulkan::Serialise_vkBeginCommandBuffer(Serialiser *localSerialiser,
// there's no issue with clashes here.
m_RerecordCmds[bakeId] = cmd;
m_RerecordCmds[cmdId] = cmd;
m_BakedCmdBufferInfo[GetResID(cmd)].level = allocInfo.level;
m_BakedCmdBufferInfo[GetResID(cmd)].beginFlags = info.flags;
}
m_BakedCmdBufferInfo[GetResID(cmd)].level = allocInfo.level;
m_BakedCmdBufferInfo[GetResID(cmd)].beginFlags = info.flags;
// add one-time submit flag as this partial cmd buffer will only be submitted once
info.flags |= VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;