Skip to content

Instantly share code, notes, and snippets.

@NikolausDemmel
Created February 15, 2015 20:37
Show Gist options
  • Save NikolausDemmel/927bd7bb3f14c1788599 to your computer and use it in GitHub Desktop.
Save NikolausDemmel/927bd7bb3f14c1788599 to your computer and use it in GitHub Desktop.
ogre1.9 fix window release
diff --git a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
index 71f8f90..974d279 100644
--- a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
+++ b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
@@ -282,6 +282,7 @@ namespace Ogre {
}
mWindow = [mView window];
+ [mWindow retain];
mIsExternal = true;
// Add our window to the window event listener class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment