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:
@@ -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))
|
||||
{
|
||||
|
Reference in New Issue
Block a user