From 007846ac67248cb1da02007a4b17a013ba31ce70 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Fri, 19 May 2017 15:04:00 -0400 Subject: [PATCH] Fix patch list count off by one error --- renderdoc/api/replay/replay_enums.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/api/replay/replay_enums.h b/renderdoc/api/replay/replay_enums.h index 59e518595..7bcea742e 100644 --- a/renderdoc/api/replay/replay_enums.h +++ b/renderdoc/api/replay/replay_enums.h @@ -1457,7 +1457,7 @@ constexpr inline uint32_t PatchList_Count(Topology topology) { return uint32_t(topology) < uint32_t(Topology::PatchList_1CPs) ? 0 - : uint32_t(topology) - uint32_t(Topology::PatchList_1CPs); + : uint32_t(topology) - uint32_t(Topology::PatchList_1CPs) + 1; } DOCUMENT(R"(Check whether or not this is a strip-type topology.