X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=OSX%2FXScreenSaverGLView.m;h=265654a1e9b95c54e62b2aa83a91f38f9241f6a3;hp=8d17eb64065f38298c2d1bf13204c6cb9370fb6b;hb=488f2fa8fbdbc77e91a70da2962d73af49e6cace;hpb=c8c6deae79b408cffbc88043c766b3bc12cf0f13 diff --git a/OSX/XScreenSaverGLView.m b/OSX/XScreenSaverGLView.m index 8d17eb64..265654a1 100644 --- a/OSX/XScreenSaverGLView.m +++ b/OSX/XScreenSaverGLView.m @@ -156,8 +156,10 @@ init_GL (ModeInfo *mi) // Enable multi-threading, if possible. This runs most OpenGL commands // and GPU management on a second CPU. { +# ifndef kCGLCEMPEngine +# define kCGLCEMPEngine 313 // Added in MacOS 10.4.8 + XCode 2.4. +# endif CGLContextObj cctx = CGLGetCurrentContext(); -# define kCGLCEMPEngine 313 // #### new in MacOS 10.4.8 + XCode 2.4 CGLError err = CGLEnable (cctx, kCGLCEMPEngine); if (err != kCGLNoError) { NSLog (@"enabling multi-threaded OpenGL failed: %d", err);