Fixed bug where EGL function pointers wouldn't get saved in optimized gcc builds
This commit is contained in:
parent
d207ba1ee6
commit
ee23cd28c7
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@
|
||||||
#endif /* SDL_VIDEO_DRIVER_RPI */
|
#endif /* SDL_VIDEO_DRIVER_RPI */
|
||||||
|
|
||||||
#define LOAD_FUNC(NAME) \
|
#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) \
|
if (!_this->egl_data->NAME) \
|
||||||
{ \
|
{ \
|
||||||
return SDL_SetError("Could not retrieve EGL function " #NAME); \
|
return SDL_SetError("Could not retrieve EGL function " #NAME); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue