This commit is contained in:
Kovid Goyal 2018-09-26 19:47:53 +05:30
parent b82e74f99a
commit f292092ffc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -812,6 +812,8 @@ void
swap_window_buffers(OSWindow *w) { swap_window_buffers(OSWindow *w) {
#ifdef __APPLE__ #ifdef __APPLE__
if (w->nsgl_ctx_updated++ < 2) { if (w->nsgl_ctx_updated++ < 2) {
// Needed on Mojave for initial window render, see
// https://github.com/kovidgoyal/kitty/issues/887
cocoa_update_nsgl_context(glfwGetNSGLContext(w->handle)); cocoa_update_nsgl_context(glfwGetNSGLContext(w->handle));
} }
#endif #endif