(OSX) Hopefully this GL hack is no longer necessary on 10.5-era OSX

This commit is contained in:
Twinaphex 2016-05-17 09:15:56 +02:00
parent 52937d4b02
commit 679cabd430

View File

@ -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