From 9b34000434dfb1c8c294ac9947cb36ddf121286c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Nov 2013 00:41:00 +0100 Subject: [PATCH] (OSX) ifdef NSOpenGLPFAOpenGLProfile with MAC_OS_X_VERSION_10_7 - Core GL profile only available from 10.7 and up --- apple/common/RAGameView.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index 56ac4133ec..39d72c5717 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -311,8 +311,12 @@ bool apple_gfx_ctx_bind_api(enum gfx_ctx_api api, unsigned major, unsigned minor NSOpenGLPixelFormatAttribute attributes [] = { NSOpenGLPFADoubleBuffer, // double buffered - NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute)16, // 16 bit depth buffer - (major || minor) ? NSOpenGLPFAOpenGLProfile : 0, (major << 12) | (minor << 8), + NSOpenGLPFADepthSize, + (NSOpenGLPixelFormatAttribute)16, // 16 bit depth buffer +#ifdef MAC_OS_X_VERSION_10_7 + (major || minor) ? NSOpenGLPFAOpenGLProfile : 0, + (major << 12) | (minor << 8), +#endif (NSOpenGLPixelFormatAttribute)nil };