Return error on get_proc_address failure

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2018-01-14 11:14:26 +00:00
parent 21c7d127a8
commit 3f882b445d
1 changed files with 6 additions and 1 deletions

View File

@ -159,7 +159,12 @@ void retro_set_environment(retro_environment_t cb)
static void *get_proc_address_mpv(void *fn_ctx, const char *name) static void *get_proc_address_mpv(void *fn_ctx, const char *name)
{ {
return (void *) hw_render.get_proc_address(name); void *proc_addr = (void *) hw_render.get_proc_address(name);
if(proc_addr == NULL)
log_cb(RETRO_LOG_ERROR, "Failure obtaining %s proc address\n", name);
return proc_addr;
} }
static void context_reset(void) static void context_reset(void)