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:
@@ -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
|
||||
|
||||
@@ -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)(); }
|
||||
|
||||
Reference in New Issue
Block a user