From a5554ed5637aa3e2e7f49486513463077413efc5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 23 Apr 2012 16:47:34 +0300 Subject: WaE: incompatible pointer types: 'long *' vs. 'const GLint *' --- slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'slideshow') 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 -- cgit