mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 07:52:57 -05:00
cocoa: Force an OpenGL context update when the window becomes key.
Fixes missing rendering on macOS 10.14 ("Mojave").
Fixes Bugzilla #4272.
This commit is contained in:
parent
8d8ae9b0c0
commit
e263c7d84a
|
|
@ -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 New Issue
Block a user