summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-02-12 10:34:21 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-12 23:32:25 (GMT)
commit640c1d0c18025fc81cbf4f4a0ba67f1f5acf9884 (patch)
treef4ca3e48ac043e4ff2471bdb3ae7ca674c175cba /src
parentece95dd012b6f05ceb622fb56eb78f86285ba05b (diff)
downloadQt-640c1d0c18025fc81cbf4f4a0ba67f1f5acf9884.zip
Qt-640c1d0c18025fc81cbf4f4a0ba67f1f5acf9884.tar.gz
Qt-640c1d0c18025fc81cbf4f4a0ba67f1f5acf9884.tar.bz2
Cocoa: Do not use NSOpenGLPFAAccelerated flag for GL context
The NSOpenGLPFAAccelerated flag indicates that only hardware-accelerated renderers are considered. It is used when direct rendering is enabled in QGLFormat. As direct rendering is enabled by default in QGLFormat, this prevents software rendering fallback if no hardware acceleration is available. Task-number: QTBUG-29641 Change-Id: I438bd5ce4e803962fd68c7e9d79f40840760e2d5 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/opengl/qgl_mac.mm3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/opengl/qgl_mac.mm b/src/opengl/qgl_mac.mm
index 4128b5b..02777ac 100644
--- a/src/opengl/qgl_mac.mm
+++ b/src/opengl/qgl_mac.mm
@@ -461,9 +461,6 @@ void *QGLContextPrivate::tryFormat(const QGLFormat &format)
attribs[cnt++] = def(format.samples(), 4);
}
- if (format.directRendering())
- attribs[cnt++] = NSOpenGLPFAAccelerated;
-
if (devType == QInternal::Pbuffer)
attribs[cnt++] = NSOpenGLPFAPixelBuffer;