Move to using upstream glfw fix for mojave initial render issue

This commit is contained in:
Kovid Goyal 2018-10-26 22:29:05 +05:30
parent 3e4eca5816
commit 34b7b2e4e8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -568,16 +568,6 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
[super dealloc];
}
-(void)setLayer:(CALayer*)layer
{
[super setLayer:layer];
if (window->context.client != GLFW_NO_API) {
// this is needed for initial rendering on mojave, see
// https://github.com/kovidgoyal/kitty/issues/887
[window->context.nsgl.object update];
}
}
- (_GLFWwindow*)glfwWindow {
return window;
}
@ -602,6 +592,14 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
return YES;
}
- (void)updateLayer
{
if (window->context.client != GLFW_NO_API)
[window->context.nsgl.object update];
_glfwInputWindowDamage(window);
}
- (id)makeBackingLayer
{
if (window->ns.layer)