mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Fix for macOS mojave not rendering the OpenGL view on window start
This commit is contained in:
parent
e75af5f531
commit
11d637558e
@ -343,6 +343,10 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
||||
|
||||
- (void)windowDidBecomeKey:(NSNotification *)notification
|
||||
{
|
||||
// Fix for macOS mojave not rendering the OpenGL view on window start
|
||||
if (window->context.client != GLFW_NO_API)
|
||||
[window->context.nsgl.object update];
|
||||
|
||||
if (_glfw.ns.disabledCursorWindow == window)
|
||||
centerCursor(window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user