In Drawable::releaseGLObjects() replaced glDeleteLists with Drawable::deleteDisplayList(..) to prevent inappropriate OpenGL deletion when current thread does have required grpahics contxt

This commit is contained in:
Robert Osfield
2007-05-19 07:08:20 +00:00
parent 7d39c74029
commit c100841487

View File

@@ -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;
}
}