From 3275cd04b7531e3fb5528246eb04d40b8f2332e3 Mon Sep 17 00:00:00 2001 From: der richter Date: Sun, 19 Jan 2020 16:23:59 +0100 Subject: 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 --- player/lua/console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/lua') 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' -- cgit v1.2.3