diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index 90f1a9ef11..e505f086a9 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -374,9 +374,6 @@ static void open_document_handler(NSOpenPanel *panel, NSInteger result) } - (IBAction)openCore:(id)sender { -#ifdef HAVE_OPENGL - NSOpenGLContext *glc = (NSOpenGLContext*)glcontext_get_ptr(); -#endif NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel]; settings_t *settings = config_get_ptr(); NSString *startdir = BOXSTRING(settings->directory.libretro); @@ -402,9 +399,6 @@ static void open_document_handler(NSOpenPanel *panel, NSInteger result) if (result == 1) open_core_handler(panel, result); #endif -#ifdef HAVE_OPENGL - [glc makeCurrentContext]; -#endif } - (void)openDocument:(id)sender