Skip to content

Commit

Permalink
Android: enable eglGetProcAddress (bug #4040, bug #4794)
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Oct 18, 2019
1 parent 03f27a3 commit e5bd200
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/video/SDL_egl.c
Expand Up @@ -227,12 +227,10 @@ SDL_EGL_GetProcAddress(_THIS, const char *proc)
void *retval = NULL;

/* eglGetProcAddress is busted on Android http://code.google.com/p/android/issues/detail?id=7681 */
#if !defined(SDL_VIDEO_DRIVER_ANDROID)
/* EGL 1.5 can use eglGetProcAddress() for any symbol. 1.4 and earlier can't use it for core entry points. */
if (!retval && is_egl_15_or_later && _this->egl_data->eglGetProcAddress) {
retval = _this->egl_data->eglGetProcAddress(proc);
}
#endif

/* Try SDL_LoadFunction() first for EGL <= 1.4, or as a fallback for >= 1.5. */
if (!retval) {
Expand All @@ -247,15 +245,13 @@ SDL_EGL_GetProcAddress(_THIS, const char *proc)
}

/* eglGetProcAddress is busted on Android http://code.google.com/p/android/issues/detail?id=7681 */
#if !defined(SDL_VIDEO_DRIVER_ANDROID)
/* Try eglGetProcAddress if we on <= 1.4 and still searching... */
if (!retval && !is_egl_15_or_later && _this->egl_data->eglGetProcAddress) {
retval = _this->egl_data->eglGetProcAddress(proc);
if (retval) {
return retval;
}
}
#endif

return retval;
}
Expand Down

0 comments on commit e5bd200

Please sign in to comment.