summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-02-20 20:34:57 +0100
committerAkemi <der.richter@gmx.de>2017-02-27 23:53:53 +0100
commit2292501533f0f5241573a6117be2c719a6740806 (patch)
treefb2519de0598fdadc7f06e9b213fdd11561231ae /options
parentb5ca8c41cc62f1ef097f4fc93525dec8b84f59a0 (diff)
downloadmpv-2292501533f0f5241573a6117be2c719a6740806.tar.bz2
mpv-2292501533f0f5241573a6117be2c719a6740806.tar.xz
cocoa: add option to force dedicated GPU
Fixes #3242
Diffstat (limited to 'options')
-rw-r--r--options/options.c5
-rw-r--r--options/options.h1
2 files changed, 6 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})),
diff --git a/options/options.h b/options/options.h
index 926b238b06..e8014d5ac0 100644
--- a/options/options.h
+++ b/options/options.h
@@ -327,6 +327,7 @@ typedef struct MPOpts {
struct gl_video_opts *gl_video_opts;
struct angle_opts *angle_opts;
+ struct cocoa_opts *cocoa_opts;
struct dvd_opts *dvd_opts;
} MPOpts;