1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0022734: Memory allocation error in OpenGl

This commit is contained in:
dbv
2012-03-29 19:29:26 +04:00
parent 3c9825482f
commit 9d35f66806
10 changed files with 268 additions and 496 deletions

View File

@@ -98,7 +98,7 @@ void InitLayerProp (const int AListId)
void OpenGl_GraphicDriver::Layer (Aspect_CLayer2d& ACLayer)
{
ACLayer.ptrLayer = (call_def_ptrLayer) malloc (sizeof (CALL_DEF_PTRLAYER));
ACLayer.ptrLayer = new CALL_DEF_PTRLAYER();
ACLayer.ptrLayer->listIndex = glGenLists(1);
}