From e32b7e1fca0a922078087b3b2c1e38894cdcecf9 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 20 Oct 2018 07:42:15 +0000 Subject: [PATCH] Fix resize of layer-backed, top-level GL windows: no more blank window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index c585daca4..284e96eb5 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1293,12 +1293,6 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; [nsw recursivelySendToSubwindows:@selector(setSubwindowFrame)]; [nsw recursivelySendToSubwindows:@selector(checkSubwindowFrame)]; if (window->as_gl_window() && Fl_X::i(window)) d->in_windowDidResize(false); -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_8 - if (views_use_CA && window->as_gl_window() && !window->parent()) { // resize toplevel layered GL window - id pre = [[[nsw contentView] layer] presentationLayer]; - if (pre) [[nsw contentView] layer].contents = pre; - } -#endif fl_unlock_function(); } - (void)windowDidResignKey:(NSNotification *)notif