From 3e0929d965a195d7094921b273594c854a8b3402 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 3 Nov 2016 15:22:59 +0100 Subject: [PATCH 1/2] Fixed: Only release NSAutoreleasePool once at the end --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index 1750c56e0..c19c73506 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -1677,8 +1677,6 @@ bool CDriverGL::destroyWindow() [[containerView() window] release]; [containerView() release]; [_glView release]; - - [_autoreleasePool release]; } _ctx = nil; From b5e3808af8bfda4ffc84e5f136e49bd9acfc168d Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 3 Nov 2016 15:23:08 +0100 Subject: [PATCH 2/2] Changed: Minor changes --HG-- branch : develop --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index c19c73506..4469550b3 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -490,7 +490,6 @@ bool CDriverGL::unInit() #elif defined(NL_OS_MAC) - // nothing to do [_autoreleasePool release]; #elif defined (NL_OS_UNIX) @@ -1460,7 +1459,7 @@ bool CDriverGL::createWindow(const GfxMode &mode) pos = 0; hwndParent = NULL; } - window = CreateWindowW(L"NLClass", L"NeL Window", dwStyle, + window = CreateWindowW(L"NLClass", L"NeL Window", dwStyle, pos, pos, mode.Width, mode.Height, hwndParent, NULL, GetModuleHandle(NULL), NULL); if (window == EmptyWindow)