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