# HG changeset patch # User Michael Lutz # Date 1362705880 -3600 # Node ID f866c42de03dbf3b415b1015589d4cb35b83eff4 # Parent dc0d0d726c8f24741eddf6054bfdf395ed230531 -Fix [FS#4689]: [OSX] Crash when unhiding the main window. diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -649,18 +649,12 @@ - (void)appWillUnhide:(NSNotification*)note { driver->SetPortAlphaOpaque (); - - /* save current visible surface */ - [ self cacheImageInRect:[ driver->cocoaview frame ] ]; } /** * Unhide and restore display plane and re-activate driver */ - (void)appDidUnhide:(NSNotification*)note { - /* restore cached image, since it may not be current, post expose event too */ - [ self restoreCachedImage ]; - driver->active = true; } /**