From 9e3994408eac285a36a2f34a88cdd001d8225af3 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Thu, 10 Dec 2015 14:10:42 +0100 Subject: [PATCH] What is that typecast dance good for? --- gfx/common/egl_common.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/gfx/common/egl_common.c b/gfx/common/egl_common.c index 0915317d94..0ff2322a64 100644 --- a/gfx/common/egl_common.c +++ b/gfx/common/egl_common.c @@ -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)