From 2c506447fcf020b17797c30d001fda9c177a4235 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Mon, 2 Apr 2012 00:11:29 -0500 Subject: WaE on Mac SDK > 10.4 Change-Id: Ie0e413a6beef87d399807f98f345103c82442a9c --- slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'slideshow') diff --git a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m index 64af8150aed5..7d23b17f893a 100644 --- a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m +++ b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m @@ -81,12 +81,13 @@ 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 +#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050 long swapInt = 1; +#else + NSInteger swapInt = 1; #endif + [[self openGLContext] setValues:&swapInt forParameter:NSOpenGLCPSwapInterval]; // set to vbl sync // init GL stuff here -- cgit v1.2.3