mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
parent
97249c9b47
commit
142b13e032
@ -213,7 +213,7 @@ namespace D3dDdi
|
|||||||
bool DrawPrimitive::appendPrimitives(D3DPRIMITIVETYPE primitiveType, INT baseVertexIndex, UINT primitiveCount,
|
bool DrawPrimitive::appendPrimitives(D3DPRIMITIVETYPE primitiveType, INT baseVertexIndex, UINT primitiveCount,
|
||||||
const UINT16* indices, UINT minIndex, UINT maxIndex)
|
const UINT16* indices, UINT minIndex, UINT maxIndex)
|
||||||
{
|
{
|
||||||
if (m_batched.primitiveCount + primitiveCount > D3DMAXNUMPRIMITIVES)
|
if ((m_batched.primitiveCount + primitiveCount) * 3 > D3DMAXNUMVERTICES)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user