From 80d536e9aa2966f2fb40a63f7d5d087e0903ad94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 1 Aug 2018 12:55:34 +0200 Subject: [PATCH] macOS: Add note about high-resolution workaround in QCocoaGLContext::makeCurrent Change-Id: I0b82ef95c1a058586e8005665e1e2cab3f975833 Reviewed-by: Gabriel de Dietrich --- src/plugins/platforms/cocoa/qcocoaglcontext.mm | 2 ++ 1 file changed, 2 insertions(+) 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);