From cdf1bf5e3bca2291b3ebec9b7d48119009441129 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 6 Dec 2022 17:33:16 +0000 Subject: [PATCH] Account for baseVertex when patching line strip index buffer --- renderdoc/replay/replay_driver.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/renderdoc/replay/replay_driver.cpp b/renderdoc/replay/replay_driver.cpp index e9736ee23..3c733c507 100644 --- a/renderdoc/replay/replay_driver.cpp +++ b/renderdoc/replay/replay_driver.cpp @@ -190,9 +190,10 @@ void PatchLineStripIndexBuffer(const ActionDescription *action, Topology topolog { const uint32_t restart = 0xffffffff; -#define IDX_VALUE(offs) \ - (idx16 ? idx16[index + (offs)] \ - : (idx32 ? idx32[index + (offs)] : (idx8 ? idx8[index + (offs)] : index + (offs)))) +#define IDX_VALUE(offs) \ + (idx16 ? idx16[index + (offs)] \ + : (idx32 ? idx32[index + (offs)] : (idx8 ? idx8[index + (offs)] : index + (offs)))) + \ + action->baseVertex switch(topology) {