Win32 Build fixes

Removed the duplicate constructor and destructor
This commit is contained in:
Robert Osfield 2016-05-16 16:23:21 +01:00
parent a0684bd058
commit 10a89ae0c5

View File

@ -317,10 +317,7 @@ class Win32WindowingSystem : public osg::GraphicsContext::WindowingSystemInterfa
static std::string osgGraphicsWindowWithCursorClass; //!< Name of Win32 window class (with cursor) used by OSG graphics window instances static std::string osgGraphicsWindowWithCursorClass; //!< Name of Win32 window class (with cursor) used by OSG graphics window instances
static std::string osgGraphicsWindowWithoutCursorClass; //!< Name of Win32 window class (without cursor) used by OSG graphics window instances static std::string osgGraphicsWindowWithoutCursorClass; //!< Name of Win32 window class (without cursor) used by OSG graphics window instances
Win32WindowingSystem() Win32WindowingSystem();
{
getInterface() = this;
}
// Access the Win32 windowing system through this singleton class. // Access the Win32 windowing system through this singleton class.
static osg::observer_ptr<Win32WindowingSystem>& getInterface() static osg::observer_ptr<Win32WindowingSystem>& getInterface()
@ -370,7 +367,7 @@ class Win32WindowingSystem : public osg::GraphicsContext::WindowingSystemInterfa
protected: protected:
virtual ~Win32WindowingSystem() {} virtual ~Win32WindowingSystem();
// Display devices present in the system // Display devices present in the system
typedef std::vector<DISPLAY_DEVICE> DisplayDevices; typedef std::vector<DISPLAY_DEVICE> DisplayDevices;
@ -703,6 +700,8 @@ std::string Win32WindowingSystem::osgGraphicsWindowWithoutCursorClass;
Win32WindowingSystem::Win32WindowingSystem() Win32WindowingSystem::Win32WindowingSystem()
: _windowClassesRegistered(false) : _windowClassesRegistered(false)
{ {
getInterface() = this;
// Detect presence of runtime support for multitouch // Detect presence of runtime support for multitouch
HMODULE hModule = LoadLibrary("user32"); HMODULE hModule = LoadLibrary("user32");
if (hModule) if (hModule)