mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 14:45:53 +00:00
If no vertex pick result is found in a single instance, return error
* We don't want to return that no vertex was found in one particular instance, as that is misleading.
This commit is contained in:
@@ -453,8 +453,12 @@ rdcpair<uint32_t, uint32_t> ReplayOutput::PickVertex(uint32_t x, uint32_t y)
|
||||
}
|
||||
else
|
||||
{
|
||||
return make_rdcpair(m_pDevice->PickVertex(m_EventID, m_Width, m_Height, cfg, x, y),
|
||||
m_RenderData.meshDisplay.curInstance);
|
||||
uint32_t vert = m_pDevice->PickVertex(m_EventID, m_Width, m_Height, cfg, x, y);
|
||||
|
||||
if(vert != ~0U)
|
||||
return make_rdcpair(vert, m_RenderData.meshDisplay.curInstance);
|
||||
|
||||
return errorReturn;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user