From 43d8cf7a5743a14946b6a9b76f8480a1f63c8d2a Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 31 Aug 2017 10:16:12 +0100 Subject: [PATCH] If no indices are present, the max index is numVerts - 1 (0 indexed) --- renderdoc/replay/replay_driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {