From 52303db217e37a17313db9f38931c144bd7e8bbe Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 4 Feb 2013 16:12:27 +0000 Subject: Fix window fullscreen crash when building for Mac OS X 10.5. --- intern/ghost/intern/GHOST_WindowCocoa.mm | 6 ------ 1 file changed, 6 deletions(-) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index ccd6cd93d4c..8d5f8bf89d5 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -58,9 +58,7 @@ extern "C" { extern void wm_draw_update(bContext *C); };*/ @interface CocoaWindowDelegate : NSObject -#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060 -#endif { GHOST_SystemCocoa *systemCocoa; GHOST_WindowCocoa *associatedWindow; @@ -998,9 +996,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state) //Show the new window [tmpWindow makeKeyAndOrderFront:m_openGLView]; //Close and release old window - [m_window setDelegate:nil]; // To avoid the notification of "window closed" event [m_window close]; - [m_window release]; m_window = tmpWindow; #endif @@ -1057,9 +1053,7 @@ GHOST_TSuccess GHOST_WindowCocoa::setState(GHOST_TWindowState state) //Show the new window [tmpWindow makeKeyAndOrderFront:nil]; //Close and release old window - [m_window setDelegate:nil]; // To avoid the notification of "window closed" event [m_window close]; - [m_window release]; m_window = tmpWindow; #endif -- cgit v1.2.3