fix(cocoa): Use RApplication for OpenGL

This commit is contained in:
Stuart Carnie 2018-10-21 15:57:05 -07:00
parent e5b9ca5187
commit 1e6503c0d9

View File

@ -88,11 +88,17 @@ static void app_terminate(void)
{
[[NSApplication sharedApplication] terminate:nil];
}
#ifdef HAVE_METAL
@interface RAWindow : NSWindow
@end
@implementation RAWindow
#else
@interface RApplication : NSApplication
@end
@implementation RApplication
#endif
#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
#define NSEventTypeKeyDown NSKeyDown