Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marvinosswald/0e981e918aeee4403e9a0790c6f32cdd to your computer and use it in GitHub Desktop.
Save marvinosswald/0e981e918aeee4403e9a0790c6f32cdd to your computer and use it in GitHub Desktop.
ogre 1.9 fix on newer macos builds
diff --git a/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp b/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
index 44231ab5a..9412b01d7 100644
--- a/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
+++ b/RenderSystems/GL/src/OSX/OgreOSXWindow.cpp
@@ -323,7 +323,7 @@ namespace Ogre
cgErr = CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
#else
GLint swapInterval = 1;
- cgErr = CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
+ cgErr = (CGError)CGLSetParameter(mCGLContextObj, kCGLCPSwapInterval, &swapInterval);
#endif
CG_CHECK_ERROR(cgErr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment