Added include/osg/GLObjects + .cpp which provide osg::flush*DeletedGLObjects() methods.
Added and cleaned up DeleteHandler calls in osgViewer to help avoid crashes on exit. Changed DatabasePager across to dynamically checcking osg::getCompileContext(..) Updated wrappers.
This commit is contained in:
@@ -332,7 +332,7 @@ osg::Geode* createTeapot()
|
||||
|
||||
int main(int , char **)
|
||||
{
|
||||
#if 1
|
||||
#if 1
|
||||
|
||||
// create viewer on heap as a test, this looks to be causing problems
|
||||
// on init on some platforms, and seg fault on exit when multi-threading on linux.
|
||||
@@ -344,7 +344,6 @@ int main(int , char **)
|
||||
// add model to viewer.
|
||||
viewer->setSceneData( createTeapot() );
|
||||
|
||||
// create the windows and run the threads.
|
||||
return viewer->run();
|
||||
|
||||
#else
|
||||
@@ -357,7 +356,6 @@ int main(int , char **)
|
||||
|
||||
// create the windows and run the threads.
|
||||
return viewer.run();
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user