mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
When no event is found on >= search, fallback to *last* event not first.
This commit is contained in:
@@ -1038,7 +1038,7 @@ const APIEvent &WrappedID3D11DeviceContext::GetEvent(uint32_t eventID)
|
||||
return e;
|
||||
}
|
||||
|
||||
return m_Events[0];
|
||||
return m_Events.back();
|
||||
}
|
||||
|
||||
void WrappedID3D11DeviceContext::ReplayFakeContext(ResourceId id)
|
||||
|
||||
@@ -262,7 +262,7 @@ const APIEvent &WrappedID3D12CommandQueue::GetEvent(uint32_t eventID)
|
||||
return e;
|
||||
}
|
||||
|
||||
return m_Cmd.m_Events[0];
|
||||
return m_Cmd.m_Events.back();
|
||||
}
|
||||
|
||||
void WrappedID3D12CommandQueue::ProcessChunk(uint64_t offset, D3D12ChunkType chunk)
|
||||
|
||||
@@ -4476,7 +4476,7 @@ const APIEvent &WrappedOpenGL::GetEvent(uint32_t eventID)
|
||||
return e;
|
||||
}
|
||||
|
||||
return m_Events[0];
|
||||
return m_Events.back();
|
||||
}
|
||||
|
||||
const DrawcallDescription *WrappedOpenGL::GetDrawcall(uint32_t eventID)
|
||||
|
||||
@@ -3113,7 +3113,7 @@ const APIEvent &WrappedVulkan::GetEvent(uint32_t eventID)
|
||||
return e;
|
||||
}
|
||||
|
||||
return m_Events[0];
|
||||
return m_Events.back();
|
||||
}
|
||||
|
||||
const DrawcallDescription *WrappedVulkan::GetDrawcall(uint32_t eventID)
|
||||
|
||||
Reference in New Issue
Block a user