From 679cabd43099bb97509d1b91b01f3ecd0051d6f9 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Tue, 17 May 2016 09:15:56 +0200 Subject: [PATCH] (OSX) Hopefully this GL hack is no longer necessary on 10.5-era OSX --- ui/drivers/ui_cocoa.m | 6 ------ 1 file changed, 6 deletions(-) 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