mirror of
https://github.com/libretro/RetroArch
synced 2025-04-18 23:42:30 +00:00
(Apple) Make apple_gfx_ctx_get_proc_address backwards compatible
with Snow Leopard
This commit is contained in:
parent
22ebf14787
commit
ed8229e2f9
@ -441,8 +441,13 @@ void apple_gfx_ctx_swap_buffers()
|
|||||||
|
|
||||||
gfx_ctx_proc_t apple_gfx_ctx_get_proc_address(const char *symbol_name)
|
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),
|
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
|
#ifdef IOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user