mirror of https://github.com/doitsujin/dxvk
[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) {
|
if (primitive >= DxbcPrimitive::Patch1) {
|
||||||
return static_cast<uint32_t>(primitive)
|
return uint32_t(primitive)
|
||||||
- static_cast<uint32_t>(DxbcPrimitive::Patch1);
|
- uint32_t(DxbcPrimitive::Patch1)
|
||||||
|
+ 1u;
|
||||||
} else {
|
} else {
|
||||||
return s_vertexCounts.at(
|
return s_vertexCounts.at(uint32_t(primitive));
|
||||||
static_cast<uint32_t>(primitive));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue