From ed8229e2f9fe4dc46fd5eb8ef12ce1846541f83d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 9 Nov 2013 07:07:35 +0100 Subject: [PATCH] (Apple) Make apple_gfx_ctx_get_proc_address backwards compatible with Snow Leopard --- apple/common/RAGameView.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apple/common/RAGameView.m b/apple/common/RAGameView.m index 0af9b1f716..1d9f992d94 100644 --- a/apple/common/RAGameView.m +++ b/apple/common/RAGameView.m @@ -441,8 +441,13 @@ void apple_gfx_ctx_swap_buffers() gfx_ctx_proc_t apple_gfx_ctx_get_proc_address(const char *symbol_name) { +#ifdef MAC_OS_X_VERSION_10_7 return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), - (__bridge CFStringRef)(@(symbol_name))); + (__bridge CFStringRef)@(symbol_name)); +#else + return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(CFBundleGetBundleWithIdentifier(GLFrameworkID), + (CFStringRef)symbol_name); +#endif } #ifdef IOS