(iOS) Implement get_proc_address in iOS context driver

This commit is contained in:
twinaphex 2013-05-12 14:19:54 +02:00
parent b20c31dc3a
commit 9bfebe7d0b
1 changed files with 12 additions and 1 deletions

View File

@ -85,6 +85,17 @@ static void gfx_ctx_input_driver(const input_driver_t **input, void **input_data
*input_data = NULL;
}
static gfx_ctx_proc_t gfx_ctx_get_proc_address(const char *symbol)
{
rarch_assert(sizeof(void*) == sizeof(void (*)(void)));
gfx_ctx_proc_t ret;
void *sym__ = eglGetProcAddress(symbol);
memcpy(&ret, &sym__, sizeof(void*));
return ret;
}
// The ios_* functions are implemented in ios/RetroArch/RAGameView.m
const gfx_ctx_driver_t gfx_ctx_ios = {
@ -101,7 +112,7 @@ const gfx_ctx_driver_t gfx_ctx_ios = {
gfx_ctx_has_focus,
ios_flip_game_view,
gfx_ctx_input_driver,
NULL,
gfx_ctx_get_proc_address,
NULL,
"ios",
};