Commit 3b70f65dc156375145679a415e1bf03cc1c843e0

Sam Lantinga 2014-10-15T09:13:36

Fixed bug where EGL function pointers wouldn't get saved in optimized gcc builds

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/SDL_egl.c b/src/video/SDL_egl.c
index 8a2e2fc..09661e8 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); \