diff options
author | Jonathan Liu <net147@gmail.com> | 2013-02-12 10:34:21 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-12 23:32:25 (GMT) |
commit | 640c1d0c18025fc81cbf4f4a0ba67f1f5acf9884 (patch) | |
tree | f4ca3e48ac043e4ff2471bdb3ae7ca674c175cba /src/opengl | |
parent | ece95dd012b6f05ceb622fb56eb78f86285ba05b (diff) | |
download | Qt-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/opengl')
-rw-r--r-- | src/opengl/qgl_mac.mm | 3 |
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; |