mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(CGL) Start implementing get_proc_address
This commit is contained in:
parent
0731e8c1fa
commit
01c793904d
@ -141,6 +141,12 @@ static void gfx_ctx_cgl_input_driver(void *data, const input_driver_t **input, v
|
||||
(void)input_data;
|
||||
}
|
||||
|
||||
static gfx_ctx_proc_t gfx_ctx_cgl_get_proc_address(const char *symbol_name)
|
||||
{
|
||||
CFBundleRef gl = CFBundleGetBundleWithIdentifier(CFSTR("com.apple.opengl"));
|
||||
return (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName(gl, (CFStringRef)symbol_name);
|
||||
}
|
||||
|
||||
static bool gfx_ctx_cgl_has_focus(void *data)
|
||||
{
|
||||
(void)data;
|
||||
@ -314,7 +320,7 @@ const gfx_ctx_driver_t gfx_ctx_cgl = {
|
||||
gfx_ctx_cgl_has_windowed,
|
||||
gfx_ctx_cgl_swap_buffers,
|
||||
gfx_ctx_cgl_input_driver,
|
||||
NULL,
|
||||
gfx_ctx_cgl_get_proc_address,
|
||||
NULL,
|
||||
NULL,
|
||||
gfx_ctx_cgl_show_mouse,
|
||||
|
Loading…
Reference in New Issue
Block a user