Fixed build error associated with change of type of getInterface()

This commit is contained in:
Robert Osfield 2016-05-19 14:26:48 +01:00
parent 10a89ae0c5
commit 037de9bd20

View File

@ -1546,7 +1546,7 @@ bool GraphicsWindowWin32::determineWindowPositionAndStyle( unsigned int screenN
// //
osg::GraphicsContext::ScreenIdentifier screenId(screenNum); osg::GraphicsContext::ScreenIdentifier screenId(screenNum);
Win32WindowingSystem* windowManager = Win32WindowingSystem::getInterface(); osg::ref_ptr<Win32WindowingSystem> windowManager = Win32WindowingSystem::getInterface();
windowManager->getScreenPosition(screenId, _screenOriginX, _screenOriginY, _screenWidth, _screenHeight); windowManager->getScreenPosition(screenId, _screenOriginX, _screenOriginY, _screenWidth, _screenHeight);
if (_screenWidth==0 || _screenHeight==0) return false; if (_screenWidth==0 || _screenHeight==0) return false;