From c10084148785812e557d8d0a3a74c3438031887e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 19 May 2007 07:08:20 +0000 Subject: [PATCH] In Drawable::releaseGLObjects() replaced glDeleteLists with Drawable::deleteDisplayList(..) to prevent inappropriate OpenGL deletion when current thread does have required grpahics contxt --- src/osg/Drawable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }