(Apple) Make apple_gfx_ctx_get_proc_address backwards compatible

with Snow Leopard
This commit is contained in:
twinaphex 2013-11-09 07:07:35 +01:00
parent 22ebf14787
commit ed8229e2f9

View File

@ -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