Fix condition for adding events to m_Events so none get lost.

* This whole bit of code needs a rethink.
This commit is contained in:
baldurk
2015-10-06 22:44:01 +02:00
parent a595df5cf7
commit a75ada47ae
+4 -2
View File
@@ -1368,12 +1368,14 @@ void WrappedVulkan::AddEvent(VulkanChunkType type, string description)
}
if(m_LastCmdBufferID != ResourceId())
{
m_CmdBufferInfo[m_LastCmdBufferID].curEvents.push_back(apievent);
}
else
{
m_RootEvents.push_back(apievent);
if(m_State == READING && m_CmdBuffersInProgress == 0)
m_Events.push_back(apievent);
}
}
FetchAPIEvent WrappedVulkan::GetEvent(uint32_t eventID)