OSG_INIT_SINGLETON_PROXY into DatabasePager::prototype() and Registry::instance(), removing the InitRegistry proxy object in src/osgViewer/ViewerBase.cpp.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4@15148 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-10-05 11:18:46 +00:00
parent 61d317b0b8
commit f4e71bad3a
3 changed files with 4 additions and 17 deletions

View File

@@ -40,23 +40,6 @@ static osg::ApplicationUsageProxy ViewerBase_e5(osg::ApplicationUsage::ENVIRONME
using namespace osgViewer;
struct InitRegistry
{
InitRegistry()
{
osgDB::Registry::instance();
}
~InitRegistry()
{
osgDB::DatabasePager::prototype() = 0;
osgDB::Registry::instance(true);
}
};
static InitRegistry s_InitRegistry;
ViewerBase::ViewerBase():
osg::Object(true)
{