diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-10-23 15:33:46 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-10-24 12:14:33 +0200 |
commit | 444e947aadc82e2aeb72fa5b3e6a352ff02441f2 (patch) | |
tree | fc1f69dd0d4d0ae4946d4345ab5c37dfe8cb237a /LICENSE.LGPLv3 | |
parent | 86a0f1cfd7942e31d1462f74769eef5a5cf3c9ab (diff) |
macOS: Improve handling of wantsBestResolutionOpenGLSurface
We were disabling wantsBestResolutionOpenGLSurface whenever we detected
the Apple software renderer, but this isn't needed when layer-backed,
and did in fact result in the exact same visual result as the bug the
code was working around -- only rendering to a quarter of the viewport.
We now apply the workaround only when software rendering is combined
with surface-backed views.
The logic has also been improved to not rely on string comparison to
look for the software renderer, but instead uses the renderer ID that
the context provides.
Since tweaking the wantsBestResolutionOpenGLSurface is only relevant
when using a window for GL rendering the logic has been moved into
QCocoaGLContext.
Change-Id: I021aaefbb7a9782bc8ee3c9703da246510326d50
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions