Move to using upstream glfw fix for mojave initial render issue
This commit is contained in:
parent
3e4eca5816
commit
34b7b2e4e8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user