mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Don't modify command buffer loose events when adding them via submit
The command buffer might be submitted multiple times
This commit is contained in:
@@ -351,16 +351,14 @@ void WrappedVulkan::ReplayQueueSubmit(VkQueue queue, VkSubmitInfo2 submitInfo, r
|
||||
|
||||
{
|
||||
// pull in any remaining events on the command buffer that weren't added to an action
|
||||
uint32_t i = 0;
|
||||
for(APIEvent &apievent : cmdBufInfo.curEvents)
|
||||
for(const APIEvent &event : cmdBufInfo.curEvents)
|
||||
{
|
||||
APIEvent apievent(event);
|
||||
apievent.eventId += m_RootEventID;
|
||||
|
||||
m_RootEvents.push_back(apievent);
|
||||
m_Events.resize(apievent.eventId + 1);
|
||||
m_Events[apievent.eventId] = apievent;
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
for(auto it = cmdBufInfo.resourceUsage.begin(); it != cmdBufInfo.resourceUsage.end(); ++it)
|
||||
|
||||
Reference in New Issue
Block a user