diff options
author | der richter <der.richter@gmx.de> | 2020-01-19 16:23:59 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2020-01-26 12:12:22 +0100 |
commit | 3275cd04b7531e3fb5528246eb04d40b8f2332e3 (patch) | |
tree | 6699958df05dfd1038ac094d454aa6b59410a2c1 /osdep/macosx_application.m | |
parent | 465f48fb0c860e7b2604e00008baab887a202c0d (diff) | |
download | mpv-3275cd04b7531e3fb5528246eb04d40b8f2332e3.tar.bz2 mpv-3275cd04b7531e3fb5528246eb04d40b8f2332e3.tar.xz |
cocoa-cb: add support for forcing the dedicated GPU for rendering
this deprecates the old cocoa backend only option and moves it to the
general macos ones. add support for the new option in the cocoa-cb
layer creation and use the new option in the olde cocoa backend.
Fixes #7272
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index d553c69158..7bf0737af9 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -62,6 +62,7 @@ const struct m_sub_options macos_conf = { OPT_CHOICE_OR_INT("macos-fs-animation-duration", macos_fs_animation_duration, 0, 0, 1000, ({"default", -1})), + OPT_FLAG("macos-force-dedicated-gpu", macos_force_dedicated_gpu, 0), OPT_CHOICE("cocoa-cb-sw-renderer", cocoa_cb_sw_renderer, 0, ({"auto", -1}, {"no", 0}, {"yes", 1})), OPT_FLAG("cocoa-cb-10bit-context", cocoa_cb_10bit_context, 0), |