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:
baldurk
2020-01-21 18:28:57 +00:00
parent 45f983f97b
commit 1a93888999
+6 -2
View File
@@ -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;
}
}