From 7140c606deb975cc926c0765d7341e3e85fa7ff2 Mon Sep 17 00:00:00 2001 From: rti Date: Wed, 4 Aug 2010 21:43:42 +0200 Subject: [PATCH] Fixed: #1029 destroyWindow() terminates the whole application --- code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm index 029617d7d..d4e5dfea0 100644 --- a/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm +++ b/code/nel/src/3d/driver/opengl/mac/cocoa_adapter.mm @@ -255,7 +255,7 @@ nlWindow createWindow(const GfxMode& mode) return view; } -/// destroy the given window and uninitialize the cocoa application +/// destroy the given window bool destroyWindow(nlWindow wnd) { NSView* view = (NSView*)wnd; @@ -263,9 +263,6 @@ bool destroyWindow(nlWindow wnd) // release the window [[view window] release]; - // shut down the application - [NSApp terminate:nil]; - // release the pool [g_pool release]; g_pool = nil;