mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't try to pick vertices if there's no input buffer specified
This commit is contained in:
@@ -291,6 +291,10 @@ uint32_t ReplayOutput::PickVertex(uint32_t eventID, uint32_t x, uint32_t y)
|
||||
return ~0U;
|
||||
|
||||
MeshDisplay cfg = m_RenderData.meshDisplay;
|
||||
|
||||
if(cfg.position.buf == ResourceId())
|
||||
return ~0U;
|
||||
|
||||
cfg.position.buf = m_pDevice->GetLiveID(cfg.position.buf);
|
||||
cfg.position.idxbuf = m_pDevice->GetLiveID(cfg.position.idxbuf);
|
||||
cfg.second.buf = m_pDevice->GetLiveID(cfg.second.buf);
|
||||
|
||||
Reference in New Issue
Block a user