From ed38e47c92885f9fc0616b9965cfe3d97d29ad25 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 31 May 2017 11:38:38 +0100 Subject: [PATCH] When showing whole pass in mesh view, show right #instances each draw --- renderdoc/replay/replay_output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/replay/replay_output.cpp b/renderdoc/replay/replay_output.cpp index 84d9f2c53..32ebad882 100644 --- a/renderdoc/replay/replay_output.cpp +++ b/renderdoc/replay/replay_output.cpp @@ -794,7 +794,7 @@ void ReplayOutput::DisplayMesh() if(d) { - for(uint32_t inst = 0; inst < RDCMAX(1U, draw->numInstances); inst++) + for(uint32_t inst = 0; inst < RDCMAX(1U, d->numInstances); inst++) { // get the 'most final' stage MeshFormat fmt = m_pDevice->GetPostVSBuffers(passEvents[i], inst, MeshDataStage::GSOut);