What is that typecast dance good for?

This commit is contained in:
Alcaro 2015-12-10 14:10:42 +01:00
parent 9b706085c9
commit 9e3994408e

View File

@ -61,15 +61,7 @@ void egl_report_error(void)
gfx_ctx_proc_t egl_get_proc_address(const char *symbol)
{
gfx_ctx_proc_t ret;
void *sym__ = NULL;
retro_assert(sizeof(void*) == sizeof(void (*)(void)));
sym__ = (void*)eglGetProcAddress(symbol);
memcpy(&ret, &sym__, sizeof(void*));
return ret;
return eglGetProcAddress(symbol);
}
void egl_destroy(void *data)