mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-22 23:01:00 +00:00
cocoa: Force an OpenGL context update when the window becomes key.
Fixes missing rendering on macOS 10.14 ("Mojave"). Fixes Bugzilla #4272. (transplanted from aee4797c84ef90464e270b1f6095a6dd7ce280c1)
This commit is contained in:
parent
0d588cc4c9
commit
22475bf3f0
|
@ -632,6 +632,8 @@ SetWindowStyle(SDL_Window * window, NSUInteger style)
|
|||
const unsigned int newflags = [NSEvent modifierFlags] & NSEventModifierFlagCapsLock;
|
||||
_data->videodata->modifierFlags = (_data->videodata->modifierFlags & ~NSEventModifierFlagCapsLock) | newflags;
|
||||
SDL_ToggleModState(KMOD_CAPS, newflags != 0);
|
||||
|
||||
ScheduleContextUpdates(_data);
|
||||
}
|
||||
|
||||
- (void)windowDidResignKey:(NSNotification *)aNotification
|
||||
|
|
Loading…
Reference in a new issue