Skip to content

Commit

Permalink
Android: explicitly expand Android_GLES_MakeCurrent/Android_GLES_Crea…
Browse files Browse the repository at this point in the history
…teContext

from SDL_egl_c.h
  • Loading branch information
1bsyl committed Jun 28, 2019
1 parent 57e08c2 commit aa45af7
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/video/android/SDL_androidgl.c
Expand Up @@ -36,8 +36,21 @@

#include <dlfcn.h>

SDL_EGL_CreateContext_impl(Android)
SDL_EGL_MakeCurrent_impl(Android)
int
Android_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
{
if (window && context) {
return SDL_EGL_MakeCurrent(_this, ((SDL_WindowData *) window->driverdata)->egl_surface, context);
} else {
return SDL_EGL_MakeCurrent(_this, NULL, NULL);
}
}

SDL_GLContext
Android_GLES_CreateContext(_THIS, SDL_Window * window)
{
return SDL_EGL_CreateContext(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
}

int
Android_GLES_SwapWindow(_THIS, SDL_Window * window)
Expand Down

0 comments on commit aa45af7

Please sign in to comment.