Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[qtbase] Add an environment variable for disabling GL_BGRA use in rea…
…d-pixels. Contributes to JB#39372
  • Loading branch information
denexter committed Sep 13, 2017
1 parent fc88164 commit 1bfec93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/opengl/qopenglframebufferobject.cpp
Expand Up @@ -1286,7 +1286,9 @@ static inline QImage qt_gl_read_framebuffer_rgba8(const QSize &size, bool includ

// Blacklist GPU chipsets that have problems with their BGRA support.
#ifndef Q_OS_IOS
const bool blackListed = (qstrcmp(renderer, "PowerVR Rogue G6200") == 0
static const bool noBgra = qEnvironmentVariableIsSet("QT_OPENGL_NO_BGRA");
const bool blackListed = noBgra ||
(qstrcmp(renderer, "PowerVR Rogue G6200") == 0
&& ::strstr(ver, "1.3") != 0) ||
(qstrcmp(renderer, "Mali-T760") == 0
&& ::strstr(ver, "3.1") != 0) ||
Expand Down

0 comments on commit 1bfec93

Please sign in to comment.