mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix SFML patch for OS X
This commit is contained in:
@@ -1,16 +1,15 @@
|
|||||||
diff --git a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
|
diff --git a/src/SFML/Window/OSX/SFViewController.mm b/src/SFML/Window/OSX/SFViewController.mm
|
||||||
index 7d736e3..113cacd 100644
|
index 7d736e3..113cacd 100644
|
||||||
--- a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
|
--- a/src/SFML/Window/OSX/SFViewController.mm
|
||||||
+++ b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
|
+++ b/src/SFML/Window/OSX/SFViewController.mm
|
||||||
@@ -82,8 +82,11 @@ -(id)initWithView:(NSView *)view
|
@@ -82,8 +82,11 @@ -(id)initWithView:(NSView *)view
|
||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(void)dealloc
|
-(void)dealloc
|
||||||
{
|
{
|
||||||
+ NSLog(@"SFViewController::dealloc called on %@", self);
|
+ NSLog(@"SFViewController::dealloc called on %@", self);
|
||||||
[self closeWindow];
|
[self closeWindow];
|
||||||
|
|
||||||
+ // See https://github.com/SFML/SFML/issues/824
|
+ // See https://github.com/SFML/SFML/issues/824
|
||||||
+ [[NSNotificationCenter defaultCenter] removeObserver:m_oglView];
|
+ [[NSNotificationCenter defaultCenter] removeObserver:m_oglView];
|
||||||
[m_view release];
|
[m_view release];
|
||||||
[m_oglView release];
|
[m_oglView release];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user