From 3b70f65dc156375145679a415e1bf03cc1c843e0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 15 Oct 2014 09:13:36 -0700 Subject: [PATCH] Fixed bug where EGL function pointers wouldn't get saved in optimized gcc builds --- src/video/SDL_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c index 8a2e2fc5c..09661e8df 100644 --- a/src/video/SDL_egl.c +++ b/src/video/SDL_egl.c @@ -62,7 +62,7 @@ #endif /* SDL_VIDEO_DRIVER_RPI */ #define LOAD_FUNC(NAME) \ -*((void**)&_this->egl_data->NAME) = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \ +_this->egl_data->NAME = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \ if (!_this->egl_data->NAME) \ { \ return SDL_SetError("Could not retrieve EGL function " #NAME); \