1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0028276: Visualization, Graphic3d_ArrayOfPrimitives - fix usage of 16-bit indices

Graphic3d_ArrayOfPrimitives now check the amount of vertex data rather than amount of indices.
This commit is contained in:
kgv
2016-12-23 21:21:00 +03:00
committed by apn
parent ad03c23449
commit 09f30297f4
2 changed files with 3 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ Graphic3d_ArrayOfPrimitives::Graphic3d_ArrayOfPrimitives (const Graphic3d_TypeOf
if (theMaxEdges > 0)
{
myIndices = new Graphic3d_IndexBuffer (anAlloc);
if (theMaxEdges < Standard_Integer(USHRT_MAX))
if (theMaxVertexs < Standard_Integer(USHRT_MAX))
{
if (!myIndices->Init<unsigned short> (theMaxEdges))
{