diff --git a/qrenderdoc/Windows/BufferViewer.cpp b/qrenderdoc/Windows/BufferViewer.cpp index 86e438dc2..181158ced 100644 --- a/qrenderdoc/Windows/BufferViewer.cpp +++ b/qrenderdoc/Windows/BufferViewer.cpp @@ -3110,7 +3110,7 @@ void BufferViewer::render_clicked(QMouseEvent *e) uint32_t vertSelected = 0; rdctie(vertSelected, instanceSelected) = - m_Output->PickVertex(m_Ctx.CurEvent(), (uint32_t)curpos.x(), (uint32_t)curpos.y()); + m_Output->PickVertex((uint32_t)curpos.x(), (uint32_t)curpos.y()); if(vertSelected != ~0U) { diff --git a/renderdoc/api/replay/renderdoc_replay.h b/renderdoc/api/replay/renderdoc_replay.h index b22590aed..690bd19b1 100644 --- a/renderdoc/api/replay/renderdoc_replay.h +++ b/renderdoc/api/replay/renderdoc_replay.h @@ -340,14 +340,13 @@ relative to the current window with the current mesh display configuration. Should only be called for mesh outputs. -:param int eventId: The event ID to pick at. :param int x: The x co-ordinate to pick from. :param int y: The y co-ordinate to pick from. :return: A tuple with the first value being the vertex index in the mesh, and the second value being the instance index. The values are set to :data:`NoResult` if no vertex was found, :rtype: ``tuple`` of ``int`` and ``int`` )"); - virtual rdcpair PickVertex(uint32_t eventId, uint32_t x, uint32_t y) = 0; + virtual rdcpair PickVertex(uint32_t x, uint32_t y) = 0; static const uint32_t NoResult = ~0U; diff --git a/renderdoc/replay/replay_controller.h b/renderdoc/replay/replay_controller.h index 4814493fb..a953578ad 100644 --- a/renderdoc/replay/replay_controller.h +++ b/renderdoc/replay/replay_controller.h @@ -58,7 +58,7 @@ public: ResourceId GetCustomShaderTexID(); ResourceId GetDebugOverlayTexID(); - rdcpair PickVertex(uint32_t eventId, uint32_t x, uint32_t y); + rdcpair PickVertex(uint32_t x, uint32_t y); private: ReplayOutput(ReplayController *parent, WindowingData window, ReplayOutputType type); diff --git a/renderdoc/replay/replay_output.cpp b/renderdoc/replay/replay_output.cpp index 777659981..007c56076 100644 --- a/renderdoc/replay/replay_output.cpp +++ b/renderdoc/replay/replay_output.cpp @@ -383,11 +383,11 @@ bool ReplayOutput::AddThumbnail(WindowingData window, ResourceId texID, const Su return true; } -rdcpair ReplayOutput::PickVertex(uint32_t eventId, uint32_t x, uint32_t y) +rdcpair ReplayOutput::PickVertex(uint32_t x, uint32_t y) { CHECK_REPLAY_THREAD(); - DrawcallDescription *draw = m_pRenderer->GetDrawcallByEID(eventId); + DrawcallDescription *draw = m_pRenderer->GetDrawcallByEID(m_EventID); const rdcpair errorReturn = {~0U, ~0U};