Cocoa: Set surface resolution for all GL surfaces

Change-Id: Ic54ad954a157ff777312361b7816b1752afbf75f
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
Morten Johan Sørvig 2014-03-19 10:11:32 +01:00 committed by The Qt Project
parent 5e03c4d97f
commit 5fe0c9e9b0

View File

@ -392,7 +392,7 @@ QCocoaWindow::QCocoaWindow(QWindow *tlw)
// problem, except if the appilcation wants to have a "custom" viewport. // problem, except if the appilcation wants to have a "custom" viewport.
// (like the hellogl example) // (like the hellogl example)
if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7 if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7
&& tlw->surfaceType() == QSurface::OpenGLSurface) { && tlw->supportsOpenGL()) {
BOOL enable = qt_mac_resolveOption(YES, tlw, "_q_mac_wantsBestResolutionOpenGLSurface", BOOL enable = qt_mac_resolveOption(YES, tlw, "_q_mac_wantsBestResolutionOpenGLSurface",
"QT_MAC_WANTS_BEST_RESOLUTION_OPENGL_SURFACE"); "QT_MAC_WANTS_BEST_RESOLUTION_OPENGL_SURFACE");
[m_contentView setWantsBestResolutionOpenGLSurface:enable]; [m_contentView setWantsBestResolutionOpenGLSurface:enable];