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:
Robert Osfield 2007-06-04 11:14:17 +00:00
parent 3ec3bf1679
commit a1fc3e63a8

View File

@ -752,8 +752,14 @@ bool GraphicsWindowCarbon::realizeImplementation()
CGLError cgerr = kCGLNoError;
CGLContextObj ctx = CGLGetCurrentContext();
#if 0
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 )
{
osg::notify(osg::INFO) << "GraphicsWindowCarbon:: Multi-threaded OpenGL Execution not available" << std::endl;