If no indices are present, the max index is numVerts - 1 (0 indexed)

This commit is contained in:
baldurk
2017-08-31 10:16:12 +01:00
parent 4084f66af0
commit 43d8cf7a57
+1 -1
View File
@@ -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)
{