mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-22 09:50:46 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user