mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 18:40:25 +00:00
(CGL) CGL Context only for OSX
This commit is contained in:
parent
6703b26e44
commit
d49ec806e0
@ -19,6 +19,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <CoreGraphics/CoreGraphics.h>
|
#include <CoreGraphics/CoreGraphics.h>
|
||||||
|
|
||||||
#include <OpenGL/CGLTypes.h>
|
#include <OpenGL/CGLTypes.h>
|
||||||
#include <OpenGL/CGLCurrent.h>
|
#include <OpenGL/CGLCurrent.h>
|
||||||
#include <OpenGL/OpenGL.h>
|
#include <OpenGL/OpenGL.h>
|
||||||
|
@ -62,7 +62,7 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = {
|
|||||||
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
#if defined(HAVE_COCOA) || defined(HAVE_COCOATOUCH)
|
||||||
&gfx_ctx_cocoagl,
|
&gfx_ctx_cocoagl,
|
||||||
#endif
|
#endif
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__) && !defined(TARGET_IPHONE_SIMULATOR) && !defined(TARGET_OS_IPHONE)
|
||||||
&gfx_ctx_cgl,
|
&gfx_ctx_cgl,
|
||||||
#endif
|
#endif
|
||||||
#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && defined(HAVE_OPENGL)
|
#if (defined(HAVE_SDL) || defined(HAVE_SDL2)) && defined(HAVE_OPENGL)
|
||||||
|
@ -105,7 +105,7 @@ VIDEO CONTEXT
|
|||||||
#include "../gfx/drivers_context/bbqnx_ctx.c"
|
#include "../gfx/drivers_context/bbqnx_ctx.c"
|
||||||
#elif defined(EMSCRIPTEN)
|
#elif defined(EMSCRIPTEN)
|
||||||
#include "../gfx/drivers_context/emscriptenegl_ctx.c"
|
#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"
|
#include "../gfx/drivers_context/cgl_ctx.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user