mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxbc] Fix off-by-one error for primitive vertex counts
Not sure if it's even possible to use this, but this was clearly a bug.
This commit is contained in:
parent
d6253aeae6
commit
eddbe73ba4
@ -15,11 +15,11 @@ namespace dxvk {
|
||||
};
|
||||
|
||||
if (primitive >= DxbcPrimitive::Patch1) {
|
||||
return static_cast<uint32_t>(primitive)
|
||||
- static_cast<uint32_t>(DxbcPrimitive::Patch1);
|
||||
return uint32_t(primitive)
|
||||
- uint32_t(DxbcPrimitive::Patch1)
|
||||
+ 1u;
|
||||
} else {
|
||||
return s_vertexCounts.at(
|
||||
static_cast<uint32_t>(primitive));
|
||||
return s_vertexCounts.at(uint32_t(primitive));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user