diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-04-23 16:47:34 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-04-24 12:22:18 +0300 |
commit | a5554ed5637aa3e2e7f49486513463077413efc5 (patch) | |
tree | 4b8068463a116e4b389176f1d53e4a5073543562 | |
parent | 157be160fd8c47f86e798a5ad117a8efbaad196a (diff) |
WaE: incompatible pointer types: 'long *' vs. 'const GLint *'
-rw-r--r-- | slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m index 44e4f6dde309..64af8150aed5 100644 --- a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m +++ b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m @@ -81,7 +81,11 @@ typedef int NSColorRenderingIntent; - (void)prepareOpenGL { // for overriding to initialize OpenGL state, occurs after context creation +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 + GLint swapInt = 1; +#else long swapInt = 1; +#endif [[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval]; // set to vbl sync |