forked from 4ian/GDevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Mac OS X workaround for SFML
Fix PackageForOBS to embed SFML in the source archive
- Loading branch information
1 parent
d7509cf
commit 4e32b64
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
ExtLibs/SFML-patches/02_workaround_OSX_crash_SFViewController.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm | ||
index 7d736e3..113cacd 100644 | ||
--- a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm | ||
+++ b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm | ||
@@ -82,8 +82,11 @@ -(id)initWithView:(NSView *)view | ||
//////////////////////////////////////////////////////// | ||
-(void)dealloc | ||
{ | ||
+ NSLog(@"SFViewController::dealloc called on %@", self); | ||
[self closeWindow]; | ||
|
||
+ // See https://github.com/SFML/SFML/issues/824 | ||
+ [[NSNotificationCenter defaultCenter] removeObserver:m_oglView]; | ||
[m_view release]; | ||
[m_oglView release]; | ||
|