From 4312953ab8699966012d12a4b0c17c543720ea85 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 20 Apr 2018 12:51:35 +0100 Subject: [PATCH] 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. --- renderdoc/replay/replay_controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderdoc/replay/replay_controller.cpp b/renderdoc/replay/replay_controller.cpp index acb4dc0d6..ab7b1bcaf 100644 --- a/renderdoc/replay/replay_controller.cpp +++ b/renderdoc/replay/replay_controller.cpp @@ -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); }