When no event is found on >= search, fallback to *last* event not first.

This commit is contained in:
baldurk
2017-09-29 12:05:09 +01:00
parent 3d11c502f5
commit 2a7944fd1d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)