This commit is contained in:
Twinaphex 2017-04-15 19:21:10 +02:00
parent e97682d4ca
commit 2324399fa8

View File

@ -43,6 +43,12 @@
#include "../../configuration.h"
#include "../../verbosity.h"
#if __has_feature(objc_arc)
#define BRIDGE __bridge
#else
#define BRIDGE
#endif
#if defined(HAVE_COCOATOUCH)
#define GLContextClass EAGLContext
#define GLFrameworkID CFSTR("com.apple.opengles")
@ -56,12 +62,6 @@
#define UIUserInterfaceIdiomCarPlay 3
#endif
#if __has_feature(objc_arc)
#define BRIDGE __bridge
#else
#define BRIDGE
#endif
@interface EAGLContext (OSXCompat) @end
@implementation EAGLContext (OSXCompat)
+ (void)clearCurrentContext { [EAGLContext setCurrentContext:nil]; }