Make sure to init PostVS buffers before fetching

* Normally a mesh rendering replay output would do this implicitly when
  an event is selected, but if accessing purely through script this may
  not happen, so we should initialise it ourselves here.
* If it's already init'd, it's almost free to call again.
This commit is contained in:
baldurk
2018-04-20 12:51:35 +01:00
parent 9f07b073dc
commit 4312953ab8
+2
View File
@@ -356,6 +356,8 @@ MeshFormat ReplayController::GetPostVSData(uint32_t instID, MeshDataStage stage)
instID = RDCMIN(instID, draw->numInstances - 1);
m_pDevice->InitPostVSBuffers(draw->eventId);
return m_pDevice->GetPostVSBuffers(draw->eventId, instID, stage);
}