Show
Ignore:
Timestamp:
07/06/07 15:08:51 (7 years ago)
Author:
robert
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowWin32.cpp

    r7067 r7074  
    568568Win32WindowingSystem::~Win32WindowingSystem() 
    569569{ 
     570    if (osg::Referenced::getDeleteHandler()) 
     571    { 
     572        osg::Referenced::getDeleteHandler()->setNumFramesToRetainObjects(0); 
     573        osg::Referenced::getDeleteHandler()->flushAll(); 
     574    } 
     575     
    570576    unregisterWindowClasses(); 
    571577} 
     
    21852191    ~RegisterWindowingSystemInterfaceProxy() 
    21862192    { 
     2193        if (osg::Referenced::getDeleteHandler()) 
     2194        { 
     2195            osg::Referenced::getDeleteHandler()->setNumFramesToRetainObjects(0); 
     2196            osg::Referenced::getDeleteHandler()->flushAll(); 
     2197        } 
     2198 
    21872199        osg::GraphicsContext::setWindowingSystemInterface(0); 
    21882200    }