X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=dispatch%2Fglimports.hpp;h=9a71a448e084d1f9ff963c3634c0bd23a710adcb;hb=3892c3075d6ec80d69570dceddcdd1f67abfc04a;hp=e6d1d324f7f3649dcef6abd64140eaf83bcd41dd;hpb=d0d0604f3286cb816f365b07c18917652776702c;p=apitrace diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index e6d1d32..9a71a44 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -88,9 +88,27 @@ typedef struct _WGLSWAP #elif defined(__APPLE__) +#include + +#if TARGET_OS_IPHONE +#elif TARGET_OS_MAC #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 @@ -110,6 +128,7 @@ CGLError CGLGetSurface(CGLContextObj ctx, CGSConnectionID* cid, CGSWindowID* wid CGLError CGLUpdateContext(CGLContextObj ctx); } +#endif #else