瀏覽代碼

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

Sam Lantinga 11 年之前
父節點
當前提交
3b70f65dc1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/SDL_egl.c

+ 1 - 1
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); \