From Don Leich, build fix for OSX.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#include <osgViewer/api/Win32/GraphicsWindowWin32>
|
||||
typedef HWND WindowHandle;
|
||||
typedef osgViewer::GraphicsWindowWin32::WindowData WindowData;
|
||||
#elif defined(__APPLE__) && defined(APPLE_PRE_10_3)
|
||||
#elif defined(__APPLE__)
|
||||
#include <osgViewer/api/Carbon/GraphicsWindowCarbon>
|
||||
typedef WindowRef WindowHandle;
|
||||
typedef osgViewer::GraphicsWindowCarbon::WindowData WindowData;
|
||||
@@ -146,7 +146,11 @@ void QOSGWidget::createContext()
|
||||
traits->sampleBuffers = ds->getMultiSamples();
|
||||
traits->samples = ds->getNumMultiSamples();
|
||||
|
||||
#if defined(__APPLE__)
|
||||
traits->inheritedWindowData = new WindowData(HIViewGetWindow((HIViewRef)winId()));
|
||||
#else
|
||||
traits->inheritedWindowData = new WindowData(winId());
|
||||
#endif
|
||||
|
||||
if (ds->getStereo())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user