mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-20 13:36:41 +00:00
Fix patch list count off by one error
This commit is contained in:
committed by
Baldur Karlsson
parent
1dcd39afd5
commit
007846ac67
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user