From d49ec806e06726125556500298c0cf84a51d4358 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sun, 26 Apr 2015 03:59:55 +0200 Subject: [PATCH] (CGL) CGL Context only for OSX --- gfx/drivers_context/cgl_ctx.c | 1 + gfx/video_context_driver.c | 2 +- griffin/griffin.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/cgl_ctx.c b/gfx/drivers_context/cgl_ctx.c index 459d8af931..c3afdf5e73 100644 --- a/gfx/drivers_context/cgl_ctx.c +++ b/gfx/drivers_context/cgl_ctx.c @@ -19,6 +19,7 @@ */ #include + #include #include #include diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index 5d38e1b1ce..8a229fc7b9 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -62,7 +62,7 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { #if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH) &gfx_ctx_cocoagl, #endif -#if defined(__APPLE__) +#if defined(__APPLE__) && !defined(TARGET_IPHONE_SIMULATOR) && !defined(TARGET_OS_IPHONE) &gfx_ctx_cgl, #endif #if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && defined(HAVE_OPENGL) diff --git a/griffin/griffin.c b/griffin/griffin.c index 35092c8c33..37fe8b65c6 100644 --- a/griffin/griffin.c +++ b/griffin/griffin.c @@ -105,7 +105,7 @@ VIDEO CONTEXT #include "../gfx/drivers_context/bbqnx_ctx.c" #elif defined(EMSCRIPTEN) #include "../gfx/drivers_context/emscriptenegl_ctx.c" -#elif defined(__APPLE__) +#elif defined(__APPLE__) && !defined(TARGET_IPHONE_SIMULATOR) && !defined(TARGET_OS_IPHONE) #include "../gfx/drivers_context/cgl_ctx.c" #endif