From 88c2994e20be93122bbd316d65711321f97ea2ba Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 15 May 2019 21:55:10 +0200 Subject: Restore use for GL windows under macOS 10.14.0 --- src/Fl_cocoa.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 72ab89ca3..f608ae8a4 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2272,6 +2272,9 @@ static FLTextInputContext* fltextinputcontext_instance = nil; } return self; } +- (void)displayLayer:(CALayer *)layer { // necessary with 10.14, does not run with ≥ 10.14.2 + [self drawRect:[self frame]]; +} /* Used by non-layered windows and by all GL windows. * Gets called when a window is created or resized, or moved between retina and non-retina displays -- cgit v1.2.3