src/video/SDL_egl.c
changeset 11363 2d3d35b2c95a
parent 11347 7f254d0b7842
child 11418 7749a3b2b343
     1.1 --- a/src/video/SDL_egl.c	Sun Aug 27 19:00:03 2017 -0700
     1.2 +++ b/src/video/SDL_egl.c	Sun Aug 27 19:05:57 2017 -0700
     1.3 @@ -72,12 +72,17 @@
     1.4  #define DEFAULT_OGL_ES "libGLESv1_CM.so.1"
     1.5  #endif /* SDL_VIDEO_DRIVER_RPI */
     1.6  
     1.7 +#ifdef SDL_VIDEO_STATIC_ANGLE
     1.8 +#define LOAD_FUNC(NAME) \
     1.9 +_this->egl_data->NAME = (void *)NAME;
    1.10 +#else
    1.11  #define LOAD_FUNC(NAME) \
    1.12  _this->egl_data->NAME = SDL_LoadFunction(_this->egl_data->dll_handle, #NAME); \
    1.13  if (!_this->egl_data->NAME) \
    1.14  { \
    1.15      return SDL_SetError("Could not retrieve EGL function " #NAME); \
    1.16  }
    1.17 +#endif
    1.18  
    1.19  static const char * SDL_EGL_GetErrorName(EGLint eglErrorCode)
    1.20  {
    1.21 @@ -275,6 +280,7 @@
    1.22      }
    1.23  #endif
    1.24  
    1.25 +#ifndef SDL_VIDEO_STATIC_ANGLE
    1.26      /* A funny thing, loading EGL.so first does not work on the Raspberry, so we load libGL* first */
    1.27      path = SDL_getenv("SDL_VIDEO_GL_DRIVER");
    1.28      if (path != NULL) {
    1.29 @@ -330,6 +336,7 @@
    1.30          }
    1.31          SDL_ClearError();
    1.32      }
    1.33 +#endif
    1.34  
    1.35      _this->egl_data->dll_handle = dll_handle;
    1.36