diff options
author | Michael Brüning <michael.bruning@qt.io> | 2020-02-11 18:26:58 +0100 |
---|---|---|
committer | Michael Brüning <michael.bruning@qt.io> | 2020-07-06 09:47:01 +0200 |
commit | daf822dc41ce7c8acb7225cf17bbb269d6cc77ee (patch) | |
tree | e30051ef58800645fbdb1743fb6c9186a769577f /src/core/net | |
parent | f41dbaad0f0b554b3168df5456e57c3016bd5e43 (diff) |
Create an OpenGL 4.1 CoreProfile on macOS unless requested otherwise
Chromium has blacklisted OpenGL version prior to 4.1 on macOS.
To re-enable hardware acceleration in WebEngine on macOS, set the
default surface format to a 4.1 CoreProfile before creating the
shared OpenGL context, unless the surface format has been set to
a specific other version.
According to https://support.apple.com/en-us/HT202823 , the newest
Mac that only had support for OpenGL 3.3 was released in Mid 2011,
so this should be okay on the majority of machines.
If the user requests an OpenGL 3.2 profile,
it will also work as the Cocoa QPA plugin enables sharing between
3.2 and 4.x contexts.
If the surface format has been requested to be a version lower than
OpenGL 3.2 or not a core profile, warn the user about the lack of
hardware acceleration.
To ensure that we have actually created native contexts for the
requested profile and not a context backed by the Apple Software
Renderer, we query the context native renderer ID using Cocoa methods.
Task-number: QTBUG-81693
Task-number: QTBUG-75262
Change-Id: I94e2e9913c8481fa8db37eb8381a89769026c919
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/core/net')
0 files changed, 0 insertions, 0 deletions