diff --git a/src/osg/Drawable.cpp b/src/osg/Drawable.cpp index 4f70ae607..adf326d04 100644 --- a/src/osg/Drawable.cpp +++ b/src/osg/Drawable.cpp @@ -538,7 +538,7 @@ void Drawable::releaseGLObjects(State* state) const // call the globj if already set otherwise comple and execute. if( globj != 0 ) { - glDeleteLists( globj, 1 ); + Drawable::deleteDisplayList(contextID,globj, getGLObjectSizeHint()); globj = 0; } }