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
This commit is contained in:
parent
1741a6c128
commit
e32b7e1fca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user