Fix replaying through indirect draws on vulkan

This commit is contained in:
baldurk
2016-10-21 21:44:24 +02:00
parent 106308a3fa
commit d4d9a855c4
@@ -325,7 +325,7 @@ bool WrappedVulkan::Serialise_vkCmdDrawIndirect(Serialiser *localSerialiser,
uint32_t baseEventID = it->eventID;
// when re-recording all, submit every drawcall individually to the callback
if(ShouldRerecordCmd(cmdid) && InRerecordRange(cmdid) && IsDrawInRenderPass())
if(m_DrawcallCallback && m_DrawcallCallback->RecordAllCmds() && IsDrawInRenderPass())
{
for(uint32_t i = 0; i < cnt; i++)
{