From 11d637558e6fa8d62bc0bba7d29e35dcca5ff5f0 Mon Sep 17 00:00:00 2001 From: Scott Bennett Date: Wed, 3 Oct 2018 19:25:35 -0500 Subject: [PATCH] Fix for macOS mojave not rendering the OpenGL view on window start --- src/cocoa_window.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 7cf4a593d..c1bd6fd54 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -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);