Replaced static ref_ptr<> with observer_ptr<> to avoid local static references hanging around.

This commit is contained in:
Robert Osfield
2016-05-16 18:52:39 +01:00
parent fe6238d126
commit 8863e03685

View File

@@ -323,9 +323,9 @@ class Win32WindowingSystem : public osg::GraphicsContext::WindowingSystemInterfa
}
// Access the Win32 windowing system through this singleton class.
static osg::ref_ptr<Win32WindowingSystem>& getInterface()
static osg::observer_ptr<Win32WindowingSystem>& getInterface()
{
static osg::ref_ptr<Win32WindowingSystem> s_win32Interface;
static osg::observer_ptr<Win32WindowingSystem> s_win32Interface;
return s_win32Interface;
}