mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0023917: Primitive Array with reserved but unused Edges array drawn corrupted from VBO
This commit is contained in:
parent
fa523cddc5
commit
ee1e83b94b
@ -85,7 +85,8 @@ Standard_Boolean OpenGl_PrimitiveArray::BuildVBO (const Handle(OpenGl_Workspace)
|
|||||||
return Standard_False;
|
return Standard_False;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (myPArray->edges != NULL)
|
if (myPArray->edges != NULL
|
||||||
|
&& myPArray->num_edges > 0)
|
||||||
{
|
{
|
||||||
myVbos[VBOEdges] = new OpenGl_IndexBuffer();
|
myVbos[VBOEdges] = new OpenGl_IndexBuffer();
|
||||||
if (!myVbos[VBOEdges]->Init (aGlCtx, 1, myPArray->num_edges, (GLuint* )myPArray->edges))
|
if (!myVbos[VBOEdges]->Init (aGlCtx, 1, myPArray->num_edges, (GLuint* )myPArray->edges))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user