summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2020-01-19 16:23:59 +0100
committerder richter <der.richter@gmx.de>2020-01-26 12:12:22 +0100
commit3275cd04b7531e3fb5528246eb04d40b8f2332e3 (patch)
tree6699958df05dfd1038ac094d454aa6b59410a2c1 /player
parent465f48fb0c860e7b2604e00008baab887a202c0d (diff)
downloadmpv-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 'player')
-rw-r--r--player/lua/console.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/console.lua b/player/lua/console.lua
index f14d7f9362..d026d4e528 100644
--- a/player/lua/console.lua
+++ b/player/lua/console.lua
@@ -34,7 +34,7 @@ function detect_platform()
-- Kind of a dumb way of detecting the platform but whatever
if mp.get_property_native('options/vo-mmcss-profile', o) ~= o then
return 'windows'
- elseif mp.get_property_native('options/cocoa-force-dedicated-gpu', o) ~= o then
+ elseif mp.get_property_native('options/macos-force-dedicated-gpu', o) ~= o then
return 'macos'
end
return 'x11'