From 3387f49efb07a0007a6da49df8e83d0ab7e009b9 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 5 Apr 2018 11:07:44 +0100 Subject: [PATCH] For input vertex picking, return current instance always. Closes #944 * Since we aren't displaying multiple instances we don't want to change the instance selection, so instead of returning 0 return the currently selected instance. --- renderdoc/replay/replay_output.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/renderdoc/replay/replay_output.cpp b/renderdoc/replay/replay_output.cpp index 1b854a7f6..8a21e87c0 100644 --- a/renderdoc/replay/replay_output.cpp +++ b/renderdoc/replay/replay_output.cpp @@ -472,7 +472,8 @@ rdcpair ReplayOutput::PickVertex(uint32_t eventId, uint32_t } else { - return make_rdcpair(m_pDevice->PickVertex(m_EventID, m_Width, m_Height, cfg, x, y), 0U); + return make_rdcpair(m_pDevice->PickVertex(m_EventID, m_Width, m_Height, cfg, x, y), + m_RenderData.meshDisplay.curInstance); } }