1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00

0023917: Primitive Array with reserved but unused Edges array drawn corrupted from VBO

This commit is contained in:
kgv 2013-04-19 16:33:05 +04:00
parent fa523cddc5
commit ee1e83b94b

View File

@ -85,7 +85,8 @@ Standard_Boolean OpenGl_PrimitiveArray::BuildVBO (const Handle(OpenGl_Workspace)
return Standard_False;
}
if (myPArray->edges != NULL)
if (myPArray->edges != NULL
&& myPArray->num_edges > 0)
{
myVbos[VBOEdges] = new OpenGl_IndexBuffer();
if (!myVbos[VBOEdges]->Init (aGlCtx, 1, myPArray->num_edges, (GLuint* )myPArray->edges))