diff options
author | Akemi <der.richter@gmx.de> | 2017-02-20 20:34:57 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-27 23:53:53 +0100 |
commit | 2292501533f0f5241573a6117be2c719a6740806 (patch) | |
tree | fb2519de0598fdadc7f06e9b213fdd11561231ae /options/options.c | |
parent | b5ca8c41cc62f1ef097f4fc93525dec8b84f59a0 (diff) | |
download | mpv-2292501533f0f5241573a6117be2c719a6740806.tar.bz2 mpv-2292501533f0f5241573a6117be2c719a6740806.tar.xz |
cocoa: add option to force dedicated GPU
Fixes #3242
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index d33c2e05d1..7723ddec50 100644 --- a/options/options.c +++ b/options/options.c @@ -92,6 +92,7 @@ extern const struct m_obj_list vo_obj_list; extern const struct m_obj_list ao_obj_list; extern const struct m_sub_options angle_conf; +extern const struct m_sub_options cocoa_conf; const struct m_opt_choice_alternatives mp_hwdec_names[] = { {"no", HWDEC_NONE}, @@ -708,6 +709,10 @@ const m_option_t mp_opts[] = { OPT_SUBSTRUCT("", angle_opts, angle_conf, 0), #endif +#if HAVE_GL_COCOA + OPT_SUBSTRUCT("", cocoa_opts, cocoa_conf, 0), +#endif + #if HAVE_GL_WIN32 OPT_CHOICE("opengl-dwmflush", wingl_dwm_flush, 0, ({"no", -1}, {"auto", 0}, {"windowed", 1}, {"yes", 2})), |