mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
Android: explicitly expand Android_GLES_MakeCurrent/Android_GLES_CreateContext
from SDL_egl_c.h
This commit is contained in:
parent
57e08c27ef
commit
aa45af7fcb
@ -36,8 +36,21 @@
|
|||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
SDL_EGL_CreateContext_impl(Android)
|
int
|
||||||
SDL_EGL_MakeCurrent_impl(Android)
|
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
|
int
|
||||||
Android_GLES_SwapWindow(_THIS, SDL_Window * window)
|
Android_GLES_SwapWindow(_THIS, SDL_Window * window)
|
||||||
|
Loading…
Reference in New Issue
Block a user