summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoaglcontext.mm
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-08-01 12:55:34 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-08-04 19:59:37 +0000
commit80d536e9aa2966f2fb40a63f7d5d087e0903ad94 (patch)
treec8bfac55ec47656d637e73ca192281cf965d997c /src/plugins/platforms/cocoa/qcocoaglcontext.mm
parentfa455b4c60388c42bcd839b6c8083b33233adb25 (diff)
macOS: Add note about high-resolution workaround in QCocoaGLContext::makeCurrent
Change-Id: I0b82ef95c1a058586e8005665e1e2cab3f975833 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaglcontext.mm')
-rw-r--r--src/plugins/platforms/cocoa/qcocoaglcontext.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaglcontext.mm b/src/plugins/platforms/cocoa/qcocoaglcontext.mm
index f1be125fa4..b4cd8149c0 100644
--- a/src/plugins/platforms/cocoa/qcocoaglcontext.mm
+++ b/src/plugins/platforms/cocoa/qcocoaglcontext.mm
@@ -371,6 +371,8 @@ bool QCocoaGLContext::makeCurrent(QPlatformSurface *surface)
// convertSizeToBacking and backingScaleFactor APIs. A typical result of this is that Qt
// will display a quarter of the window content when running in a virtual machine.
if (!m_didCheckForSoftwareContext) {
+ // FIXME: This ensures we check only once per context,
+ // but the context may be used for multiple surfaces.
m_didCheckForSoftwareContext = true;
const GLubyte* renderer = glGetString(GL_RENDERER);