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

This commit is contained in:
baldurk committed 2017-09-29 12:05:09 +01:00
1 parent 50f03de69b
commit 019b3072a1
4 files changed
+4 -4

No files matched your search

+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
@@ -4470,7 +4470,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
@@ -3116,7 +3116,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)