mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
What is that typecast dance good for?
This commit is contained in:
parent
9b706085c9
commit
9e3994408e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user