From 2292501533f0f5241573a6117be2c719a6740806 Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 20 Feb 2017 20:34:57 +0100 Subject: cocoa: add option to force dedicated GPU Fixes #3242 --- options/options.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'options/options.c') 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})), -- cgit v1.2.3