Don't try to pick vertices if there's no input buffer specified

This commit is contained in:
baldurk
2016-06-08 10:49:39 -07:00
parent 59484fa380
commit cb0c8ca620
+4
View File
@@ -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);