summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-23 15:33:46 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-10-24 12:14:33 +0200
commit444e947aadc82e2aeb72fa5b3e6a352ff02441f2 (patch)
treefc1f69dd0d4d0ae4946d4345ab5c37dfe8cb237a /src/gui/rhi
parent86a0f1cfd7942e31d1462f74769eef5a5cf3c9ab (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 'src/gui/rhi')
0 files changed, 0 insertions, 0 deletions