From 587728bf81e60de63a80b10ae2d57b7bc18bec4e Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Tue, 16 Nov 2010 21:21:12 +0100 Subject: Add workaround_brokenFBOReadback=true for mali --- src/opengl/qgl_qpa.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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(glGetString(GL_RENDERER)); + if (renderer && strstr(renderer, "Mali")) { + d->workaround_brokenFBOReadBack = true; + } + } + } void QGLContext::doneCurrent() -- cgit v0.12