diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-11-16 20:21:12 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-11-19 09:34:54 (GMT) |
commit | 587728bf81e60de63a80b10ae2d57b7bc18bec4e (patch) | |
tree | cbdc8aa11cd9d0ae6e19ec098239317bcf97308e /src/opengl | |
parent | 05b65c2f9df1c2c56c72f313401a6adb422d381b (diff) | |
download | Qt-587728bf81e60de63a80b10ae2d57b7bc18bec4e.zip Qt-587728bf81e60de63a80b10ae2d57b7bc18bec4e.tar.gz Qt-587728bf81e60de63a80b10ae2d57b7bc18bec4e.tar.bz2 |
Add workaround_brokenFBOReadback=true for mali
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl_qpa.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/opengl/qgl_qpa.cpp b/src/opengl/qgl_qpa.cpp index 49c0860..4b530de 100644 --- a/src/opengl/qgl_qpa.cpp +++ b/src/opengl/qgl_qpa.cpp @@ -166,6 +166,15 @@ void QGLContext::makeCurrent() Q_D(QGLContext); d->platformContext->makeCurrent(); QGLContextPrivate::setCurrentContext(this); + + if (!d->workaroundsCached) { + d->workaroundsCached = true; + const char *renderer = reinterpret_cast<const char *>(glGetString(GL_RENDERER)); + if (renderer && strstr(renderer, "Mali")) { + d->workaround_brokenFBOReadBack = true; + } + } + } void QGLContext::doneCurrent() |