diff --git a/renderdoc/replay/replay_driver.cpp b/renderdoc/replay/replay_driver.cpp index c40327450..925afeafd 100644 --- a/renderdoc/replay/replay_driver.cpp +++ b/renderdoc/replay/replay_driver.cpp @@ -179,7 +179,7 @@ void HighlightCache::CacheHighlightingData(uint32_t eventID, const MeshDisplay & stage = cfg.type; uint32_t bytesize = cfg.position.idxByteWidth; - uint64_t maxIndex = cfg.position.numVerts; + uint64_t maxIndex = cfg.position.numVerts - 1; if(cfg.position.idxByteWidth == 0 || stage == MeshDataStage::GSOut) {