1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed graphical artifacts in Nocturne

See issue #336.
This commit is contained in:
narzoul 2024-07-14 11:50:31 +02:00
parent 97249c9b47
commit 142b13e032

View File

@ -213,7 +213,7 @@ namespace D3dDdi
bool DrawPrimitive::appendPrimitives(D3DPRIMITIVETYPE primitiveType, INT baseVertexIndex, UINT primitiveCount,
const UINT16* indices, UINT minIndex, UINT maxIndex)
{
if (m_batched.primitiveCount + primitiveCount > D3DMAXNUMPRIMITIVES)
if ((m_batched.primitiveCount + primitiveCount) * 3 > D3DMAXNUMVERTICES)
{
return false;
}