Fix native RGB text on OpenGL ES 2 without BGRA extension
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Tue, 6 Nov 2012 11:22:39 +0000 (12:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Nov 2012 11:36:16 +0000 (12:36 +0100)
commit65755f9a68947e774c640ce92c022d677acdcc4a
treeae6486b03db9f65c64483e1e374eaddecbebc8ca
parentcf1eb700702aec473db0a4794b1a6549ee10bb62
Fix native RGB text on OpenGL ES 2 without BGRA extension

Angle, for instance, which is now the default on Windows,
does not support the GL_BGRA_EXT format as input for
glTexSubImage2D(). In the case where it's not detected, we
therefore need to flip the bytes in the input.

Change-Id: Ibe78d0223e3c2c39cb1943cdcf67103044d00aa7
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/gui/opengl/qopenglfunctions.cpp
src/gui/opengl/qopengltextureglyphcache.cpp