mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix crappy bug that happens with NSOpenPanel and Cocoa GL - current
context gets lost
This commit is contained in:
parent
a2580d3ec2
commit
4461ff8442
@ -334,6 +334,7 @@ extern void action_ok_push_quick_menu(void);
|
||||
[panel beginSheetForDirectory:nil file:nil modalForWindopw:[self window] modalDelegate:self didEndSelector:@selector(didEndSaveSheet:returnCode:contextInfo:) contextInfo:NULL];
|
||||
#endif
|
||||
[[NSApplication sharedApplication] runModalForWindow:panel];
|
||||
[g_context makeCurrentContext];
|
||||
}
|
||||
|
||||
- (void)openDocument:(id)sender
|
||||
@ -379,6 +380,7 @@ extern void action_ok_push_quick_menu(void);
|
||||
[panel beginSheetForDirectory:nil file:nil modalForWindopw:[self window] modalDelegate:self didEndSelector:@selector(didEndSaveSheet:returnCode:contextInfo:) contextInfo:NULL];
|
||||
#endif
|
||||
[[NSApplication sharedApplication] runModalForWindow:panel];
|
||||
[g_context makeCurrentContext];
|
||||
}
|
||||
|
||||
- (void)unloadingCore
|
||||
|
Loading…
x
Reference in New Issue
Block a user