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:
parent
5e03c4d97f
commit
5fe0c9e9b0
@ -392,7 +392,7 @@ QCocoaWindow::QCocoaWindow(QWindow *tlw)
|
||||
// problem, except if the appilcation wants to have a "custom" viewport.
|
||||
// (like the hellogl example)
|
||||
if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7
|
||||
&& tlw->surfaceType() == QSurface::OpenGLSurface) {
|
||||
&& tlw->supportsOpenGL()) {
|
||||
BOOL enable = qt_mac_resolveOption(YES, tlw, "_q_mac_wantsBestResolutionOpenGLSurface",
|
||||
"QT_MAC_WANTS_BEST_RESOLUTION_OPENGL_SURFACE");
|
||||
[m_contentView setWantsBestResolutionOpenGLSurface:enable];
|
||||
|
Loading…
x
Reference in New Issue
Block a user