From 3892c3075d6ec80d69570dceddcdd1f67abfc04a Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Wed, 17 Jul 2013 19:40:25 -0500 Subject: [PATCH] glimports: Check for iOS and skip OpenGL and CGL as appropriate. The Regal build for iOS supporting apitrace needs this change to avoid a compilation error. --- dispatch/glimports.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dispatch/glimports.hpp b/dispatch/glimports.hpp index 358135f..9a71a44 100644 --- a/dispatch/glimports.hpp +++ b/dispatch/glimports.hpp @@ -88,6 +88,10 @@ typedef struct _WGLSWAP #elif defined(__APPLE__) +#include + +#if TARGET_OS_IPHONE +#elif TARGET_OS_MAC #include #include @@ -124,6 +128,7 @@ CGLError CGLGetSurface(CGLContextObj ctx, CGSConnectionID* cid, CGSWindowID* wid CGLError CGLUpdateContext(CGLContextObj ctx); } +#endif #else -- 2.43.0