Fix for macOS mojave not rendering the OpenGL view on window start

This commit is contained in:
Scott Bennett 2018-10-03 19:25:35 -05:00
parent e75af5f531
commit 11d637558e

View File

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