From Martin Lavery and Robert Osfield, added use of hardwarded value kCGLCEMPEngine
to fix build failure on slightly older versions of OSX.
This commit is contained in:
@@ -752,8 +752,14 @@ bool GraphicsWindowCarbon::realizeImplementation()
|
|||||||
CGLError cgerr = kCGLNoError;
|
CGLError cgerr = kCGLNoError;
|
||||||
CGLContextObj ctx = CGLGetCurrentContext();
|
CGLContextObj ctx = CGLGetCurrentContext();
|
||||||
|
|
||||||
|
#if 0
|
||||||
cgerr = CGLEnable( ctx, kCGLCEMPEngine);
|
cgerr = CGLEnable( ctx, kCGLCEMPEngine);
|
||||||
|
#else
|
||||||
|
// the above use of kCGLCEMPEngine is not backwards compatible
|
||||||
|
// so we'll use the raw value of it to keep things compiling on older
|
||||||
|
// versions of OSX.
|
||||||
|
cgerr = CGLEnable( ctx, static_cast <CGLContextEnable>(313) );
|
||||||
|
#endif
|
||||||
if (cgerr != kCGLNoError )
|
if (cgerr != kCGLNoError )
|
||||||
{
|
{
|
||||||
osg::notify(osg::INFO) << "GraphicsWindowCarbon:: Multi-threaded OpenGL Execution not available" << std::endl;
|
osg::notify(osg::INFO) << "GraphicsWindowCarbon:: Multi-threaded OpenGL Execution not available" << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user