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 egl_get_proc_address(const char *symbol)
|
||||||
{
|
{
|
||||||
gfx_ctx_proc_t ret;
|
return eglGetProcAddress(symbol);
|
||||||
void *sym__ = NULL;
|
|
||||||
|
|
||||||
retro_assert(sizeof(void*) == sizeof(void (*)(void)));
|
|
||||||
|
|
||||||
sym__ = (void*)eglGetProcAddress(symbol);
|
|
||||||
memcpy(&ret, &sym__, sizeof(void*));
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void egl_destroy(void *data)
|
void egl_destroy(void *data)
|
||||||
|
|
Loading…
Reference in New Issue