From 596aadf1acfd316a568cc3eb7af9a646a5876db8 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 5 Jul 2013 11:49:11 -0500 Subject: [PATCH] Support for Mac OS X 10.5 Leopard CGLShareGroupObj and IOSurfaceRef were added in 10.6 Snow Leopard SDK Add workarounds to glimports.hpp to support building for pre-10.6. --- dispatch/glimports.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index e6d1d32..358135f 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -89,8 +89,22 @@ typedef struct _WGLSWAP #elif defined(__APPLE__) #include + +#include + +#ifndef MAC_OS_X_VERSION_10_6 +#define MAC_OS_X_VERSION_10_6 1060 +#endif + +#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6 #include #include +#else +#define kCGLPFAAcceleratedCompute 97 +#define kCGLRPAcceleratedCompute 130 +typedef void *CGLShareGroupObj; +typedef struct __IOSurface *IOSurfaceRef; +#endif #ifndef CGL_VERSION_1_3 #define kCGLPFAOpenGLProfile 99 -- 2.45.2