diff options
author | Aman Gupta <aman@tmm1.net> | 2017-10-09 12:44:49 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-09 21:49:01 +0200 |
commit | 502d074a317f912c17c5dd15889cdf91311a23c5 (patch) | |
tree | 513b25489319cb02623e65f7af7963831cb3cfde | |
parent | 05cb8d28afd8881667c3dea297b182a2ecdd91c8 (diff) |
vo_gpu: android: fix gpu context
-rw-r--r-- | video/out/gpu/context.c | 4 | ||||
-rw-r--r-- | wscript | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c index c8cbb1aa47..ff9cef226c 100644 --- a/video/out/gpu/context.c +++ b/video/out/gpu/context.c @@ -44,6 +44,7 @@ extern const struct ra_ctx_fns ra_ctx_wgl; extern const struct ra_ctx_fns ra_ctx_angle; extern const struct ra_ctx_fns ra_ctx_dxgl; extern const struct ra_ctx_fns ra_ctx_rpi; +extern const struct ra_ctx_fns ra_ctx_android; extern const struct ra_ctx_fns ra_ctx_mali; extern const struct ra_ctx_fns ra_ctx_vdpauglx; @@ -54,6 +55,9 @@ extern const struct ra_ctx_fns ra_ctx_vulkan_xlib; static const struct ra_ctx_fns *contexts[] = { // OpenGL contexts: +#if HAVE_ANDROID + &ra_ctx_android, +#endif #if HAVE_RPI &ra_ctx_rpi, #endif @@ -156,6 +156,7 @@ main_dependencies = [ 'func': compose_checks( check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header check_cc(lib="android"), + check_cc(lib="EGL"), ) }, { 'name': 'posix-or-mingw', |