Restored the REGISTER_WINDOWINGSYSTEMINTERFACE macro to the include/osg/GraphicsContext header and removed the OSGVIEWER_EXPORT as this was causing compatibility issues with osgQt.

In GraphicsWindowWin32 replaced REGISTER_WINDOWINGSYSTEMINTERFACE usage with locally implemented equivilant with the required OSGVIEWER_EXPORT.
This commit is contained in:
Robert Osfield
2018-05-21 13:10:40 +01:00
parent 43058ac1d5
commit dce6684c59
3 changed files with 7 additions and 13 deletions

View File

@@ -597,6 +597,10 @@ struct WindowingSystemInterfaceProxy
osg::ref_ptr<T> _wsi;
};
#define REGISTER_WINDOWINGSYSTEMINTERFACE(ext, classname) \
extern "C" void graphicswindow_##ext(void) {} \
static osg::WindowingSystemInterfaceProxy<classname> s_proxy_##classname(#ext);
}
#endif

View File

@@ -274,10 +274,6 @@ class GraphicsWindowEmbedded : public GraphicsWindow
};
#define REGISTER_WINDOWINGSYSTEMINTERFACE(ext, classname) \
extern "C" OSGVIEWER_EXPORT void graphicswindow_##ext(void) {} \
static osg::WindowingSystemInterfaceProxy<classname> s_proxy_##classname(#ext);
struct GraphicsWindowFunctionProxy
{
GraphicsWindowFunctionProxy(CGraphicsWindowFunction function) { (function)(); }