mirror of https://github.com/mpv-player/mpv
vo_gpu: android: fix gpu context
This commit is contained in:
parent
05cb8d28af
commit
502d074a31
|
@ -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_angle;
|
||||||
extern const struct ra_ctx_fns ra_ctx_dxgl;
|
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_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_mali;
|
||||||
extern const struct ra_ctx_fns ra_ctx_vdpauglx;
|
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[] = {
|
static const struct ra_ctx_fns *contexts[] = {
|
||||||
// OpenGL contexts:
|
// OpenGL contexts:
|
||||||
|
#if HAVE_ANDROID
|
||||||
|
&ra_ctx_android,
|
||||||
|
#endif
|
||||||
#if HAVE_RPI
|
#if HAVE_RPI
|
||||||
&ra_ctx_rpi,
|
&ra_ctx_rpi,
|
||||||
#endif
|
#endif
|
||||||
|
|
1
wscript
1
wscript
|
@ -156,6 +156,7 @@ main_dependencies = [
|
||||||
'func': compose_checks(
|
'func': compose_checks(
|
||||||
check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
|
check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
|
||||||
check_cc(lib="android"),
|
check_cc(lib="android"),
|
||||||
|
check_cc(lib="EGL"),
|
||||||
)
|
)
|
||||||
}, {
|
}, {
|
||||||
'name': 'posix-or-mingw',
|
'name': 'posix-or-mingw',
|
||||||
|
|
Loading…
Reference in New Issue