From 714bddf9921a4e12f03867118c6a4697083e6a14 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 22 Feb 2017 17:52:43 +0100 Subject: Add support for macOS Airplay to Demobrowser in presence of dual GPUs Previously when Airplay was activated and a new QWebEngineView instance was created, a black area would be rendered inside the view. This happened because of incompatible OpenGL contexts. The global Qt OpenGL context could not share its textures with the newly created "after-airplay" context, due to the contexts being used by different GPUs (only possible on a MacBook Pro). The fix is to add the NSSupportsAutomaticGraphicsSwitching option into the application plist file, which informs macOS that the application supports usage of dual GPUs, and thus allows sharing of contexts across GPUs. Task-number: QTBUG-54053 Change-Id: Ic37fb75f164922bcca6456054174171fa9ba2bfb Reviewed-by: Leena Miettinen Reviewed-by: Allan Sandfeld Jensen --- examples/webenginewidgets/demobrowser/Info_mac.plist | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/webenginewidgets/demobrowser/Info_mac.plist b/examples/webenginewidgets/demobrowser/Info_mac.plist index ccd4b3f28..25443f7be 100644 --- a/examples/webenginewidgets/demobrowser/Info_mac.plist +++ b/examples/webenginewidgets/demobrowser/Info_mac.plist @@ -41,5 +41,7 @@ NOTE DemoBrowser by The Qt Company Ltd. + NSSupportsAutomaticGraphicsSwitching + YES -- cgit v1.2.3