[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54298] trunk/blender/intern/ghost/intern/ GHOST_WindowCocoa.mm: Fix window fullscreen crash when building for Mac OS X 10.5.
Brecht Van Lommel
brechtvanlommel at pandora.be
Mon Feb 4 17:12:28 CET 2013
Revision: 54298
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54298
Author: blendix
Date: 2013-02-04 16:12:27 +0000 (Mon, 04 Feb 2013)
Log Message:
-----------
Fix window fullscreen crash when building for Mac OS X 10.5.
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2013-02-04 15:48:29 UTC (rev 54297)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2013-02-04 16:12:27 UTC (rev 54298)
@@ -58,9 +58,7 @@
extern void wm_draw_update(bContext *C);
};*/
@interface CocoaWindowDelegate : NSObject
-#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
<NSWindowDelegate>
-#endif
{
GHOST_SystemCocoa *systemCocoa;
GHOST_WindowCocoa *associatedWindow;
@@ -998,9 +996,7 @@
//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 @@
//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
More information about the Bf-blender-cvs
mailing list